This may fail if you don't use git in English. To quickly fix it: alias git='LANG=en_GB git'
alias git='LANG=en_GB git'
:o
What is different when you use Git in another language? I didn't know it existed.
In French (I cannot tell for other languages), commit seems to have been translated by objet commit.
commit
objet commit
git fsck --unreachable returns objet commit inatteignable 977ee79082f2e1179c3d2156f8f0e6c66682ea2d instead of unreachable commit 977ee79082f2e1179c3d2156f8f0e6c66682ea2d
git fsck --unreachable
objet commit inatteignable 977ee79082f2e1179c3d2156f8f0e6c66682ea2d
unreachable commit 977ee79082f2e1179c3d2156f8f0e6c66682ea2d
Thus, cut -d ' ' -f3 returns inatteignable instead of the commit tag.
cut -d ' ' -f3
inatteignable
Ha oui, carrément. :D
Gonna update the article. Thanks a lot!
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
This may fail if you don't use git in English. To quickly fix it:
alias git='LANG=en_GB git'
:o
What is different when you use Git in another language? I didn't know it existed.
In French (I cannot tell for other languages),
commit
seems to have been translated byobjet commit
.git fsck --unreachable
returnsobjet commit inatteignable 977ee79082f2e1179c3d2156f8f0e6c66682ea2d
instead of
unreachable commit 977ee79082f2e1179c3d2156f8f0e6c66682ea2d
Thus,
cut -d ' ' -f3
returnsinatteignable
instead of the commit tag.Ha oui, carrément. :D
Gonna update the article. Thanks a lot!