Fix branch name for modules without patches

This commit is contained in:
Matthias Schiffer 2013-12-28 22:43:16 +01:00
parent b48cdd4f1a
commit 76167579cd
1 changed files with 8 additions and 7 deletions

View File

@ -9,13 +9,14 @@ for module in $GLUON_MODULES; do
dir="$1"/$module
git -C $dir checkout -B patching base
if [ -z "$1"/patches/$module/*.patch ]; then continue; fi
git -C "$dir" am "$1"/patches/$module/*.patch || (
git -C "$dir" am --abort
git -C "$dir" checkout patched
git -C "$dir" branch -D patching
false
)
if [ "$1"/patches/$module/*.patch ]; then
git -C "$dir" am "$1"/patches/$module/*.patch || (
git -C "$dir" am --abort
git -C "$dir" checkout patched
git -C "$dir" branch -D patching
false
)
fi
git -C "$dir" checkout -B patched
git -C "$dir" branch -d patching
done