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

vcs export exits with error if there are local branches that don't track remote branches #264

Open
tvu-outrider opened this issue Oct 31, 2023 · 0 comments

Comments

@tvu-outrider
Copy link

If I create a local branch and run vcs export; it exits with error. See the sequence of actions taken to reproduce this issue below:

git switch -c tmp/fails
Switched to a new branch 'tmp/fails'

vcs export
repositories:
Could not determine ref: fatal: no upstream configured for branch 'tmp/fails'

Proposed solution: modify

'returncode': 1,
so the return code is 0

My use case is to gather git version information to be embedded in an executable; but this issue causes an error in the build script.
I don't think not having an upstream remote warrants an error here; and it would play more nicely with my build script if the exit code is not an error. I understand that this is an annoyance specific to my use case, just want to see if there's a chance the solution can be adopted upstream.

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

1 participant