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

Unhandled git error when a tracked upstream branch is removed #88

Closed
c5f opened this issue Oct 31, 2015 · 2 comments
Closed

Unhandled git error when a tracked upstream branch is removed #88

c5f opened this issue Oct 31, 2015 · 2 comments

Comments

@c5f
Copy link

c5f commented Oct 31, 2015

git checkout -b some-feature
git push -u some-remote some-feature
git push some-remote :some-feature

yields the following output whenever git-radar is called on the branch with the missing upstream:

fatal: ambiguous argument 'some-remote/some-feature...HEAD': unknown revision or path not in the working tree.
Use '--' to separate paths from revisions, like this:
'git <command> [<revision>...] -- [<file>...]'
Fatal: ambiguous argument 'some-remote/some-feature...HEAD': unknown revision or path not in the working tree.
Use '--' to separate paths from revisions, like this:
'git <command> [<revision>...] -- [<file>...]'

The example is a silly chain of three commands to elicit this behavior, but I don't think having tracked branches deleted from remotes is an uncommon occurrence.

@hallzy
Copy link
Contributor

hallzy commented Nov 1, 2015

See #86. The error looks similar and can probably be resolved with the same 2>/dev/null appending as specified there. Looks like @michaeldfallen is adding it.

@michaeldfallen
Copy link
Owner

I'm thinking squash the error as you have and create a "not upstream" indicator. Taking functionality away from the "remote commits" indicator (which honestly shouldn't be doing that not upstream functionality if we were being pure) and combines it with a "ok my upstream is configured but does it actually exist?" check.

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

No branches or pull requests

3 participants