Skip to content

Instantly share code, notes, and snippets.

@Yatekii
Created November 7, 2018 09:19
Show Gist options
  • Save Yatekii/977578a3447b0a8f790810783af271c7 to your computer and use it in GitHub Desktop.
Save Yatekii/977578a3447b0a8f790810783af271c7 to your computer and use it in GitHub Desktop.
Rewrites the version number inside a Gitlab export since Gitlab is too retarded to import "older" projects even when there is no issue importing them at all
# Usage:
# ./convert-gitlab-export.sh export.tar.gz 'version.number.string'
mkdir project_export
tar xfv $1 -C project_export
cd project_export
echo $2 > VERSION
tar czf ready-$1 *
cd ..
mv project_export/ready-$1 .
rm -rf project_export
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment