project name is now optional

This commit is contained in:
lroche
2018-03-12 15:43:53 +01:00
parent 8198d66ce7
commit 8c6672728d
2 changed files with 9 additions and 0 deletions
+5
View File
@@ -7,6 +7,11 @@ All mechanism of conversion is based on [fast-export](https://github.com/frej/fa
docker run -it -v ~/anyproject-hg:/work/projectname -v ~/project-result-git:/work/result lroche/hg2git projectname
or if you don't want to specifiy projectname:
docker run -it -v ~/anyproject-hg:/work/project -v ~/project-result-git:/work/result lroche/hg2git
the run uses two bound volumes, one for hg source, other for git target result.
the name of project has no matter but it will be the same between /work/projectname and the argument of the command (here projectname)
+4
View File
@@ -1,6 +1,10 @@
#!/bin/bash
PROJECT_NAME=$1
if [ $PROJECT_NAME -eq ""];
then
PROJECT_NAME="project"
fi
cd /work/result
mkdir -p $PROJECT_NAME-git