* t1300-repo-config.sh failed on CYGWIN
@ 2006-12-20 2:37 SungHyun Nam
2006-12-20 3:22 ` Patch (Re: t1300-repo-config.sh failed on CYGWIN) SungHyun Nam
0 siblings, 1 reply; 2+ messages in thread
From: SungHyun Nam @ 2006-12-20 2:37 UTC (permalink / raw)
To: git
If I run it on CYGWIN, there's an error msg:
* FAIL 39: rename section
git-repo-config --rename-section branch.eins branch.zwei
* FAIL 40: rename succeeded
diff -u expect .git/config
...
I run some commands...
$ cd t/trash
$ rm -f .git/config.lock
$ ../../git-repo-config.exe --rename-section branch.eins branch.zwei
error: Cannot commit config file!
Thanks,
namsh
^ permalink raw reply [flat|nested] 2+ messages in thread
* Patch (Re: t1300-repo-config.sh failed on CYGWIN)
2006-12-20 2:37 t1300-repo-config.sh failed on CYGWIN SungHyun Nam
@ 2006-12-20 3:22 ` SungHyun Nam
0 siblings, 0 replies; 2+ messages in thread
From: SungHyun Nam @ 2006-12-20 3:22 UTC (permalink / raw)
To: git
SungHyun Nam wrote:
> If I run it on CYGWIN, there's an error msg:
>
> * FAIL 39: rename section
> git-repo-config --rename-section branch.eins branch.zwei
> * FAIL 40: rename succeeded
> diff -u expect .git/config
With a patch below, the problem gone.
BTW, there's a leak for 'config_filename' in
git_config_rename_section().
Thanks,
namsh
diff --git a/config.c b/config.c
index 663993f..a23ac47 100644
--- a/config.c
+++ b/config.c
@@ -806,6 +806,7 @@ int git_config_rename_section(const char *old_name,
const char *new_name)
}
write(out_fd, buf, strlen(buf));
}
+ fclose(config_file);
if (close(out_fd) || commit_lock_file(lock) < 0)
return error("Cannot commit config file!");
return ret;
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2006-12-20 3:30 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-12-20 2:37 t1300-repo-config.sh failed on CYGWIN SungHyun Nam
2006-12-20 3:22 ` Patch (Re: t1300-repo-config.sh failed on CYGWIN) SungHyun Nam
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.