Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

git-upstream fails for now repositories #72

Closed
Brickster opened this issue Aug 20, 2016 · 0 comments
Closed

git-upstream fails for now repositories #72

Brickster opened this issue Aug 20, 2016 · 0 comments
Labels
Milestone

Comments

@Brickster
Copy link
Owner

$ git init test
Initialized empty Git repository in /private/tmp/test/.git/
$ cd test
$ git upstream
fatal: ambiguous argument 'HEAD': unknown revision or path not in the working tree.
Use '--' to separate paths from revisions, like this:
'git <command> [<revision>...] -- [<file>...]'
Traceback (most recent call last):
  File "/Users/marcus/Development/python/git-commands/bin/git-upstream", line 50, in <module>
    main()
  File "/Users/marcus/Development/python/git-commands/bin/git-upstream", line 45, in main
    upstream_output = upstream.upstream(**vars(parser.parse_args()))
  File "/Users/marcus/Development/python/git-commands/bin/commands/upstream.py", line 26, in upstream
    branch = git.current_branch()
  File "/Users/marcus/Development/python/git-commands/bin/commands/utils/git.py", line 94, in current_branch
    return check_output(('git', 'rev-parse', '--abbrev-ref', 'HEAD')).strip()
  File "/usr/local/Cellar/python/2.7.12/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 574, in check_output
    raise CalledProcessError(retcode, cmd, output=output)
subprocess.CalledProcessError: Command '('git', 'rev-parse', '--abbrev-ref', 'HEAD')' returned non-zero exit status 128
@Brickster Brickster added the bug label Aug 20, 2016
@Brickster Brickster modified the milestone: v0.6.0 Jan 11, 2017
Brickster added a commit that referenced this issue Jan 8, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant