From 5126aa796cffbe2c7d9b96522f90ac1ffb73d9ab Mon Sep 17 00:00:00 2001 From: Pavel Chipiga Date: Mon, 30 Jan 2012 18:23:10 +0200 Subject: [PATCH] Ensure import branch always exists. Refs #112 --- bin/import_srpm.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/bin/import_srpm.sh b/bin/import_srpm.sh index 6b3bd1512..272d95721 100755 --- a/bin/import_srpm.sh +++ b/bin/import_srpm.sh @@ -32,8 +32,9 @@ rm -f srpm.cpio # Commit and push changes git add -A . -git commit -m "Automatic import for version $version" -git push origin HEAD +git commit -m "Automatic import for version $version" +git branch $git_branch # Ensure branch exists +git push origin master $git_branch # Cleanup rm -rf $tmp_dir