Created
November 7, 2018 09:19
-
-
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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