summaryrefslogtreecommitdiffstats
path: root/scripts/mageia-reset-and-import.sh
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/mageia-reset-and-import.sh')
-rwxr-xr-xscripts/mageia-reset-and-import.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/mageia-reset-and-import.sh b/scripts/mageia-reset-and-import.sh
index e7787cc..5bbef3b 100755
--- a/scripts/mageia-reset-and-import.sh
+++ b/scripts/mageia-reset-and-import.sh
@@ -320,7 +320,7 @@ git push origin master 'refs/remotes/*:refs/heads/*'
pushd ../$SOFTWARE.git
git branch -D trunk
-git branch -D origin/master
+git branch -D origin/master 2>/dev/null
# Tagging logic inspired by https://github.com/nothingmuch/git-svn-abandon/blob/master/git-svn-abandon-fix-refs
git for-each-ref --format='%(refname)' refs/heads/tags | cut -d / -f 4 | \