Skip to content

git-subrepo: Command failed: 'git rev-parse FETCH_HEAD^0'. #218

@ktomk

Description

@ktomk

Here is another one that does not work with git:

$ git subrepo fetch shared
git-subrepo: Command failed: 'git rev-parse FETCH_HEAD^0'.

I was on master and tried issue/142 as well.

When I visit the repository (I have it on disk) and try the command there I get:

$ git rev-parse FETCH_HEAD^0
8e616f79c946eb04ea4f3c8e4061b586c8f9f16d

Which looks great. Immediatly switching back to the other directory:

 $ git rev-parse FETCH_HEAD^0
FETCH_HEAD^0
fatal: ambiguous argument 'FETCH_HEAD^0': unknown revision or path not in the working tree.
Use '--' to separate paths from revisions, like this:
'git <command> [<revision>...] -- [<file>...]'

My subrepo is a local directory (non-bare git repo) with a relative pathname to remote.

I might not be that responsive the next days, but I'll catch up when I'm online again.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions