git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [patch] fork optional branch point normazilation
@ 2005-04-17 12:04 Brad Roberts
  2005-04-17 12:25 ` Petr Baudis
  2005-04-17 17:13 ` [patch] " Linus Torvalds
  0 siblings, 2 replies; 12+ messages in thread
From: Brad Roberts @ 2005-04-17 12:04 UTC (permalink / raw)
  To: git

(ok, author looks better, but committer doesn't obey the AUTHOR_ vars yet)

This might not be how you intended git fork to behave, but without doing
_something_ to protect the head parameter a bit, this is just asking for a
corrutped .git/HEAD file.

commit 76faec069dfeae59c3ce5faaad10bdcded0cc908
tree c291316b28eff4042c80850cd93445345a606835
parent 1cdbc0a19b8d9b68f1f42735e2f14f1289823a63
author Brad Roberts <braddr@puremagic.com> 1113738584 -0700
committer Brad Roberts,,, <braddr@gameboy2> 1113738584 -0700

gitfork needs to normalize the optional third parameter before using it.

Index: gitfork.sh
===================================================================
--- 51b1bddbbc05e50d5bbf1f9662e503c2e85d5e96/gitfork.sh  (mode:100755 sha1:e5692ea9bdbc39b028fe1e1205381da632541bab)
+++ c291316b28eff4042c80850cd93445345a606835/gitfork.sh  (mode:100755 sha1:386148ae9a99739d06a09742ff4157d0f7e4e223)
@@ -37,6 +37,7 @@
 [ -e "$destdir" ] && die "$destdir already exists"

 [ "$head" ] || head=$(commit-id)
+head=$(gitXnormid.sh -c $head)

 git lntree "$destdir"
 echo $head >.git/heads/$name




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

end of thread, other threads:[~2005-04-18 10:37 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-04-17 12:04 [patch] fork optional branch point normazilation Brad Roberts
2005-04-17 12:25 ` Petr Baudis
2005-04-17 12:40   ` Brad Roberts
2005-04-17 17:13 ` [patch] " Linus Torvalds
2005-04-17 17:21   ` Daniel Barkalow
2005-04-17 23:27   ` Brad Roberts
2005-04-17 23:39     ` Linus Torvalds
2005-04-18  0:23       ` Petr Baudis
2005-04-18  1:07         ` Linus Torvalds
2005-04-18  1:51           ` [PATCH] remove_special() tentative fix Junio C Hamano
2005-04-18  2:01           ` [patch] fork optional branch point normazilation Brad Roberts
2005-04-18 10:45       ` Martin Schlemmer

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).