[PATCH 1/1] scan-tree: handle error in git_config_from_file()

Jason A. Donenfeld Jason at zx2c4.com
Tue Mar 8 15:05:37 CET 2016


Are repos without .git/config necessarily invalid?

zx2c4 at thinkpad ~ $ mkdir abcd
zx2c4 at thinkpad ~ $ cd abcd
zx2c4 at thinkpad ~/abcd $ git init
Initialized empty Git repository in /home/zx2c4/abcd/.git/
zx2c4 at thinkpad ~/abcd $ touch file
zx2c4 at thinkpad ~/abcd $ git add file
zx2c4 at thinkpad ~/abcd $ git commit -m first
[master (root-commit) 55749f6] first
 1 file changed, 0 insertions(+), 0 deletions(-)
 create mode 100644 file
zx2c4 at thinkpad ~/abcd $ rm .git/config
zx2c4 at thinkpad ~/abcd $ git status
On branch master
nothing to commit, working directory clean


More information about the CGit mailing list