chiark / gitweb /
tg-export: Ensure we don't overwrite a branch by git update-ref
authorPetr Baudis <pasky@suse.cz>
Tue, 12 Aug 2008 16:19:20 +0000 (18:19 +0200)
committerPetr Baudis <pasky@suse.cz>
Tue, 12 Aug 2008 16:19:20 +0000 (18:19 +0200)
tg-export.sh

index 73ad2ef..62361dd 100644 (file)
@@ -190,7 +190,7 @@ recurse_deps driver "$name"
 
 
 if [ "$driver" = "collapse" ]; then
-       git update-ref "refs/heads/$output" "$(cat "$playground/$name")"
+       git update-ref "refs/heads/$output" "$(cat "$playground/$name")" ""
 
        depcount="$(cat "$playground/^ticker" | wc -l)"
        echo "Exported topic branch $name (total $depcount topics) to branch $output"