-
Notifications
You must be signed in to change notification settings - Fork 788
Pull removes untracked files locally #53
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
Comments
I too have the same issue. I am commenting here hoping this gets bumped up. |
I am also suffering this issue. It seems to me like when this library tries to calculate the changes it needs to make to the filesystem, it is including untracked files in the current state (coming from here: https://github.com/go-git/go-git/blob/master/worktree_status.go#L128 in the code). This appears to happen as part of the "reset" (in |
To help us keep things tidy and focus on the active tasks, we've introduced a stale bot to spot issues/PRs that haven't had any activity in a while. This particular issue hasn't had any updates or activity in the past 90 days, so it's been labeled as 'stale'. If it remains inactive for the next 30 days, it'll be automatically closed. We understand everyone's busy, but if this issue is still important to you, please feel free to add a comment or make an update to keep it active. Thanks for your understanding and cooperation! |
It's still a pretty serious bug |
@pete-woods would you be able to share an example on how to reproduce the issue please? |
If I remember correctly, simply doing a "hard git reset" in a directory with untracked files is enough. Instead of only reverting tracked files, any untracked files are also deleted. This, of course, is not what's supposed to happen. |
To help us keep things tidy and focus on the active tasks, we've introduced a stale bot to spot issues/PRs that haven't had any activity in a while. This particular issue hasn't had any updates or activity in the past 90 days, so it's been labeled as 'stale'. If it remains inactive for the next 30 days, it'll be automatically closed. We understand everyone's busy, but if this issue is still important to you, please feel free to add a comment or make an update to keep it active. Thanks for your understanding and cooperation! |
…in different files. Fixes go-git#53
…in different files. Fixes go-git#53
Hi,
Thank you for the great work you've been doing with
go-git
. I've used it to start a new project and it works really well.As a new user I guess I might be doing something wrong, or miss a concept, but here I have a very basic
Pull
operation on a repository which looks like this:The folder into which the repository lives also contains untracked files. If I run this pull operation with
go-git
, all the untracked files are being removed from the directory. On the other hand if run a manualgit pull
in my terminal from the same folder, untracked files get preserved as expected.Could you please help me ?
Thanks in advance
The text was updated successfully, but these errors were encountered: