Make FETCH_HEAD after every mirror

This commit is contained in:
2018-02-13 14:41:02 +01:00
parent 21e30ec9b6
commit 13275017f6

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(){