Make FETCH_HEAD after every mirror

This commit is contained in:
Václav Valíček (YCNet) 2018-02-13 14:41:02 +01:00
parent 21e30ec9b6
commit 13275017f6
No known key found for this signature in database
GPG Key ID: 7CF44871CEA75938

View File

@ -22,13 +22,14 @@ function updateOrCreate(){
then
echo "Clone of $url"
git clone --bare --mirror $url $repodir
# create FETCH_HEAD needed by other scripts
cd $repodir
git fetch --prune
else
cd $repodir
echo "Update of $url"
git fetch --prune
fi
# tags
}
function getLastCommit(){