git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [user confusion] git-config error messages
@ 2008-05-12 14:16 Ingo Molnar
  2008-05-12 21:41 ` [PATCH] Improve reporting of errors in config file routines Alex Riesen
  0 siblings, 1 reply; 3+ messages in thread
From: Ingo Molnar @ 2008-05-12 14:16 UTC (permalink / raw)
  To: git


ok, i thought i'd share this stupid little episode of user error.
I wanted to enable git-rerere:

 $ git-config --add rerere.enabled true
 could not lock config file

 #
 # Hm, do remember this option incorrectly? And what lock file?
 #

 $ git-config --add rerere.enabled=1
 key does not contain a section: --add

 #
 # What section? What key?
 #

 $ git-config --add rerere.enabled=true
 key does not contain a section: --add

 #
 # Huh? Ok, lets try strace:
 #

 $ strace -f git-config --add rerere.enabled true 2>&1 | grep \\.lock
 open(".git/config.lock", O_RDWR|O_CREAT|O_EXCL|O_LARGEFILE, 0666) = -1 ENOENT (No such file or directory)

 #
 # Ah, stupid me! I forgot to cd into the Git repository and it tries to 
 # access .git. And i wanted the --global option anyway. So the Git 
 # error messages led me on the completely wrong path.
 #

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2008-05-12 22:11 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-05-12 14:16 [user confusion] git-config error messages Ingo Molnar
2008-05-12 21:41 ` [PATCH] Improve reporting of errors in config file routines Alex Riesen
2008-05-12 22:10   ` Junio C Hamano

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).