]> git.xonotic.org Git - xonotic/xonotic.git/commitdiff
correctly write info.txt
authorxonotic <xonotic@xonotic.org>
Thu, 15 Apr 2010 09:43:03 +0000 (11:43 +0200)
committerxonotic <xonotic@xonotic.org>
Thu, 15 Apr 2010 09:43:40 +0000 (11:43 +0200)
all

diff --git a/all b/all
index c1a830f750343884c60982b16864fdbb3fa8bbd7..57d92453a1d1e89e0536081087b16d696a34bdef 100755 (executable)
--- a/all
+++ b/all
@@ -392,9 +392,9 @@ case "$cmd" in
                                        if [ x"$REV" = x"->" ]; then
                                                continue
                                        fi
-                                       if git format-patch -o "$patchdir/$i" "$UPSTREAM".."$BRANCH" | grep .; then
+                                       if git format-patch -o "$patchdir/$i" "$UPSTREAM".."$BRANCH"; then
                                                echo "$d" > "$patchdir/$i/info.txt"
-                                               echo "$BRANCH" > "$patchdir/$i/info.txt"
+                                               echo "$BRANCH" >> "$patchdir/$i/info.txt"
                                                echo "$UPSTREAM" >> "$patchdir/$i/info.txt"
                                                echo "$TRACK" >> "$patchdir/$i/info.txt"
                                                i=$(($i+1))