Jim Meyering <[EMAIL PROTECTED]> writes:
> I've tested the following versions of git:
>
> 1.5.3.rc1.27.ga5e40
> 1.5.2.4
> 1.4.4.4
Very strange. I'm using Debian stable git (1.4.4.4).
> E.g., from a git-cloned coreutils work area,
> "git-rm -n doc/.gitignore" should exit successfully.
> Does that work for you?
Yes. Here's the strace output for that, if it helps.
Maybe you have a $HOME/.gitconfig file? I don't.
... [omitting shared library stuff] ....
getcwd("/home/eggert/src/gnu/cu-gnulib", 4097) = 31
access(".git/refs/", X_OK) = 0
access(".git/objects/", X_OK) = 0
lstat64(".git/HEAD", {st_mode=S_IFREG|0644, st_size=23, ...}) = 0
open(".git/HEAD", O_RDONLY) = 3
read(3, "ref: refs/heads/master\n", 255) = 23
close(3) = 0
brk(0) = 0x80df000
brk(0x8100000) = 0x8100000
access("/home/eggert/.gitconfig", R_OK) = -1 ENOENT (No such file or directory)
open(".git/config", O_RDONLY) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=53, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =
0xb7f92000
read(3, "[core]\n\trepositoryformatversion "..., 4096) = 53
read(3, "", 4096) = 0
close(3) = 0
munmap(0xb7f92000, 4096) = 0
access("/home/eggert/.gitconfig", R_OK) = -1 ENOENT (No such file or directory)
open(".git/config", O_RDONLY) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=53, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =
0xb7f92000
read(3, "[core]\n\trepositoryformatversion "..., 4096) = 53
read(3, "", 4096) = 0
close(3) = 0
munmap(0xb7f92000, 4096) = 0
open(".git/index.lock", O_RDWR|O_CREAT|O_EXCL, 0666) = 3
rt_sigaction(SIGINT, {0x8076010, [INT], SA_RESTART}, {SIG_DFL}, 8) = 0
open(".git/index", O_RDONLY) = 4
fstat64(4, {st_mode=S_IFREG|0644, st_size=78416, ...}) = 0
mmap2(NULL, 78416, PROT_READ|PROT_WRITE, MAP_PRIVATE, 4, 0) = 0xb7e2a000
close(4) = 0
fstat64(1, {st_mode=S_IFCHR|0620, st_rdev=makedev(136, 3), ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =
0xb7f92000
write(1, "rm \'doc/.gitignore\'\n", 20) = 20
unlink(".git/index.lock") = 0
munmap(0xb7f92000, 4096) = 0
exit_group(0) = ?
_______________________________________________
Bug-coreutils mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-coreutils