You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$ git status
...
nothing added to commit but untracked files present (use "git add" to track)
$ git-crypt init ~/git-crypt.key
Working directory not clean.
Please commit your changes or 'git stash' them before setting up git-crypt.
I think it should only check for modified files, and ignore untracked files (untracked files are not touched by git reset anyway, so git-crypt setup should be safe even with untracked files being present).
The text was updated successfully, but these errors were encountered:
Hi, thanks for the report. You're absolutely right on all counts. 'git status --porcelain' outputs '??' for untracked files, so the fix is pretty simple: make sure no line of the output starts with anything other than '??'. I should be able to get to this today or tomorrow.
this is apparently due to git-crypt just checking for output of
git status --porcelain
not being empty in https://github.com/AGWA/git-crypt/blob/master/commands.cpp#L205I think it should only check for modified files, and ignore untracked files (untracked files are not touched by git reset anyway, so git-crypt setup should be safe even with untracked files being present).
The text was updated successfully, but these errors were encountered: