diff --git a/bin/git-archive-file b/bin/git-archive-file index bbb47233e..4bde7c805 100755 --- a/bin/git-archive-file +++ b/bin/git-archive-file @@ -20,6 +20,8 @@ else if [ "$BRANCH" = "master" ]; then FILENAME=$ARCHIVE_NAME.$VERSION.zip else + # govern against invalid path characters + BRANCH=$(echo "$BRANCH" | sed -r 's/[\/\\\:]+/_/g') FILENAME=$ARCHIVE_NAME.$VERSION.$BRANCH.zip fi fi