summaryrefslogtreecommitdiff
path: root/jhbuild_patches_collect
diff options
context:
space:
mode:
Diffstat (limited to 'jhbuild_patches_collect')
-rwxr-xr-xjhbuild_patches_collect18
1 files changed, 10 insertions, 8 deletions
diff --git a/jhbuild_patches_collect b/jhbuild_patches_collect
index fd22c20..f24a6c4 100755
--- a/jhbuild_patches_collect
+++ b/jhbuild_patches_collect
@@ -14,13 +14,15 @@ for i in $LIST ; do
D=${D%% *}
# echo "$i: $D"
if [ "$D" != "$M" ] ; then
- cd $D
- git diff --quiet --ignore-submodules || (echo "$i: dirty" && exit 1 ) || exit 1
- FN=`git format-patch -o $O origin/master`
- cd - >/dev/null
- for p in $FN; do
- echo $p
- mv $p $O/$i-`basename $p`
- done
+ cd $D
+ if [ -e ".git" ]; then
+ git diff --quiet --ignore-submodules || (echo "$i: dirty" && exit 1 ) || exit 1
+ FN=`git format-patch -o $O origin/master`
+ cd - >/dev/null
+ for p in $FN; do
+ echo $p
+ mv $p $O/$i-`basename $p`
+ done
+ fi
fi
done