AGWA / AGWA/git-crypt

Problems above 0.4 version and solution

Offen
#148 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
Vorherrschende Sprache
C++
Sterne
9.9k
Forks
544
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

I have use 0.4 version of git-crypt for many years, it's works well with git 1.9, but recently github.com need tls1.2 which force me to update git to 2.x, and I found 0.4 not works with git 2.x, so I updated git-crypt to 0.5 and I found 2 bugs at least.

1. On winodws, if path of the repo has unicode, `git-crypt unlock ` will fail, due to git 2.x output utf-8 chars in the result of `git ls-files`, this will let `touch_file` fail on windows platform

2. If the repo has many files, `git_checkout` will failed on windows, due the command of launching process are too long.

Solution:
1. I find out another solution for `touch_file`, that's `git rm -r .`
2. 'git checkout -f HEAD -- .' works well in 0.4

So I modified the source of 0.4, just add `git rm -r .` for `touch_file`, it works well with git 2.x!
Sorry I don't need other features above 0.4.

Beitragsleitfaden

Beitragsleitfaden öffnen

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.