From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jason at zx2c4.com (Jason A. Donenfeld) Date: Wed, 9 Mar 2016 12:05:05 +0100 Subject: [PATCH v2 1/1] scan-tree: handle error in git_config_from_file() In-Reply-To: <1457518595-9412-1-git-send-email-list@eworm.de> References: <1457445106-17365-1-git-send-email-list@eworm.de> <1457518595-9412-1-git-send-email-list@eworm.de> Message-ID: 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