- fixed git cloning after $DIRECTORY had to be deleted

Signed-off-by: Steffen Pankratz <kratz00@gmx.de>
Reviewed-by: Tim Niemeyer <tim.niemeyer@mastersword.de>
This commit is contained in:
Steffen Pankratz 2015-07-17 18:47:02 +02:00 committed by Tim Niemeyer
parent dda4316660
commit 62a1504a57
1 changed files with 2 additions and 1 deletions

View File

@ -50,7 +50,8 @@ checkout_git(){
else
echo wrong remote or not an git repo at all -\> deleting whole directory
/bin/rm -rf $DIRECTORY
$MYGIT clone $REPO_URL $DIRECTORY
#needs to be without -C!!!
git clone $REPO_URL $DIRECTORY
$MYGIT checkout $COMMITID
fi
else