Skip to content

[Windows] Manual update "git reset --hard" causes "volt get -u {repo}" always fail #51

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

Open
tyru opened this issue Nov 11, 2017 · 3 comments

Comments

@tyru
Copy link
Member

tyru commented Nov 11, 2017

In #49 branch:

  1. cd ~/volt/repos/{repo}
  2. git reset --hard HEAD~
  3. volt get -u {repo}
{repo} : upgrade failed : worktree contains unstagged changes

After manual update of repository git reset --hard, volt get -u {repo} always fail.

@tyru
Copy link
Member Author

tyru commented Nov 11, 2017

This problem occurs the following environment:

  • Windows Subsystem Linux
  • ~/volt is symlink to /mnt/c/...

@tyru
Copy link
Member Author

tyru commented Nov 11, 2017

Maybe because it appears that file permission is changed:

$ git diff HEAD
diff --git a/README.md b/README.md
old mode 100644
new mode 100755

If I run git config core.filemode false in the repository, git diff or git status tell no changes,
but go-git might not support core.filemode ...?

@tyru
Copy link
Member Author

tyru commented Nov 11, 2017

go-git might not support core.filemode ...?

Bingo. src-d/go-git#378

@tyru tyru changed the title Manual update "git reset --hard" causes "volt get -u {repo}" always fail [Windows] Manual update "git reset --hard" causes "volt get -u {repo}" always fail Nov 24, 2017
@tyru tyru added the bug label Mar 23, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant