-
Notifications
You must be signed in to change notification settings - Fork 12
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 update_repo fails when there are only untracked files #395
Comments
I would like to fix this. Which of the options would prefer? |
@jfpedroza Hi I'm not sure of the consequences at scale. All look appetizing, and look like they'd make the syncing more robust. I would accept a PR with any of those. And if you wrote a test, that'd be legendary. P.S. I am going to be making sweeping improvements to this library over the coming months - as well as vcspull. I apologize for how crusty the internals are. They will improve, markedly. |
So, I went and cloned everything and set up the projects. It turns out Should I check the changes against the |
I got it running with that branch and adding the |
You've ran into a temporary issue. That's where I'm doing work at the moment - and could probably break within minutes of you making a change (assuming I'm awake) I'll give you instructions to where the stable branches are Sorry about that: Backstory: The metaphorical "big dig" is happening, where a major refactor on both sides are being reconciled |
libvcs branch: v0.13.x Is this any better? Or, I can notify you when |
I updated both of these:
When pointing to a live libvcs from vcspull: Clone libvcs also, then checkout v0.13.x: git checkout v0.13.x In vcspull master (or your branch based off master): pip install -e ~/path/to/libvcs |
@jfpedroza Due to the state of limbo you've happened upon this issue - I am also happy to PR it on your behalf. (for both backport and new version of libtmux) |
@jfpedroza Thank you!
What do those look like? |
|
I just realized. Do the tests require Subversion and Mercurial to be installed? Because I absolutely don't have those. Although, all tests in |
Those should be skipped automatically if you don't have the binary I will take a closer look now |
@jfpedroza If you fetch the latest from v0.13.x (ff9247b), is it any better? |
Tests pass now :D |
@jfpedroza Brilliant! |
FYI I will go to sleep for now and be around in the morning tomorrow 🙏 |
Currenly when using
vcspull sync
, and a repo has untracked files and no other changes, the command fails with something likeThat is because
git status
returns output including the untracked files whilegit stash save
doesn't have the-u
flag and so no stash is actually created.To fix the problem, one of these should be performed:
--untracked-files=no
togit status
--include-untracked
togit stash save
The text was updated successfully, but these errors were encountered: