From: Junio C Hamano Date: Sat, 28 Feb 2009 20:59:50 GMT Subject: Re: [PATCH] Ensure proper setup of git_dir for git-hash-object Message-ID: <7v3adyffax.fsf@gitster.siamese.dyndns.org> In-Reply-To: <1235851009-16739-1-git-send-email-newren@gmail.com> newren@gmail.com writes: > Without this patch: > $ mkdir tmp > $ cd tmp/ > $ git init --bare > Initialized empty Git repository in /home/newren/floss-development/git/tmp/ > $ echo hi | git hash-object -w --stdin > error: unable to create temporary sha1 filename .git/objects/45: No such file or directory > > fatal: Unable to add stdin to database > $ echo hi | git --git-dir=. hash-object -w --stdin > 45b983be36b73c0788dc9cbcb76cbb80fc7bb057 Does the patched version work without -w option? Should it?