diff options
author | Junio C Hamano <junkio@cox.net> | 2005-11-03 15:45:36 -0800 |
---|---|---|
committer | Junio C Hamano <junkio@cox.net> | 2005-11-03 15:45:36 -0800 |
commit | 6ddc0964034342519a87fe013781abf31c6db6ad (patch) | |
tree | 74cc863556a42d41e2bf8dec45e6fd33ed312228 /git-branch.sh | |
parent | 235d521da60e4699e5bd59ac658b5b48bd76ddca (diff) | |
parent | 2be8fd085e865097fa0908fe1a94c8edf9cde7f5 (diff) |
GIT 0.99.9cv0.99.9c
Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'git-branch.sh')
-rwxr-xr-x | git-branch.sh | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/git-branch.sh b/git-branch.sh index e2db9063d4..67f113acb9 100755 --- a/git-branch.sh +++ b/git-branch.sh @@ -102,4 +102,6 @@ rev=$(git-rev-parse --verify "$head") || exit git-check-ref-format "heads/$branchname" || die "we do not like '$branchname' as a branch name." +leading=`expr "refs/heads/$branchname" : '\(.*\)/'` && +mkdir -p "$GIT_DIR/$leading" && echo $rev > "$GIT_DIR/refs/heads/$branchname" |