From bba8e96a45fd2f21ae41df4eaf079a5c04dae079 Mon Sep 17 00:00:00 2001 From: Karsten Hopp Date: Sep 30 2010 14:36:37 +0000 Subject: push changes to repository before build --- diff --git a/vim-update.sh b/vim-update.sh index fca1a9b..dd8c34b 100755 --- a/vim-update.sh +++ b/vim-update.sh @@ -48,6 +48,11 @@ sed -i -e "/\%changelog/a$CHLOG.$PLFILLED-1\n- patchlevel $PLFILLED\n" $SPEC wget ftp://ftp.vim.org/pub/vim/patches/$MAJORVERSION/README -O README.patches $debug git add vim.spec README.patches $debug git commit -m "- patchlevel $PL" -$debug rm -f $HOME/.koji/config -$debug fedpkg build -$debug ln -sf $HOME/.koji/s390-config config +$debug git push +if [ $? -eq 0 ]; then + $debug rm -f $HOME/.koji/config + $debug fedpkg build + $debug ln -sf $HOME/.koji/s390-config config +else + echo "GIT push failed" +fi