Skip to content

Conversation

@alphastorm
Copy link

This fixes the call to git to retrieve behind_count/ahead_count.

Using the following versions:

git version 2.15.0
zsh 5.4.2 (x86_64-apple-darwin15.6.0)

The current implementation throws an error, but quoting the arguments fixes it:

$ git rev-list --left-right --count @{upstream}...HEAD
fatal: ambiguous argument '@a...HEAD': unknown revision or path not in the working tree.
Use '--' to separate paths from revisions, like this:
'git <command> [<revision>...] -- [<file>...]'

$ git rev-list --left-right --count "@{upstream}...HEAD"
0	1

@alphastorm
Copy link
Author

Appears another PR is open for this as well, #31, but that has an unnecessary Fix boolean check on only_if_ssh for host slice commit.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant