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.
#
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
| Mike Travis | [RFC 00/15] x86_64: Optimize percpu accesses |
| Nick Piggin | Re: [PATCH 0 of 4] Generic AIO by scheduling stacks |
| Trent Piepho | [PATCH] [POWERPC] Improve (in|out)_beXX() asm code |
| Bart Van Assche | Integration of SCST in the mainstream Linux kernel |
git: | |
| Kevin Ballard | Re: git on MacOSX and files with decomposed utf-8 file names |
| Jon Smirl | ! [rejected] master -> master (non-fast forward) |
| Linus Torvalds | Re: kernel.org mirroring (Re: [GIT PULL] MMC update) |
| Nguyen Thai Ngoc Duy | Re: VCS comparison table |
| Leon Dippenaar | New tcp stack attack |
| Richard Stallman | Real men don't attack straw men |
| Kevin Neff | Patching a SSH 'Weakness' |
| Chris | sudo & wheel group |
| David Miller | [GIT]: Networking |
| Wang Chen | [PATCH 2/15] netdevice 82596: Convert directly reference of netdev->priv to net... |
| Valentine Barshak | [PATCH] USB: net: Fix asix read transfer buffer allocations. |
| Natalie Protasevich | [BUG] New Kernel Bugs |
