Make FETCH_HEAD after every mirror
This commit is contained in:
parent
21e30ec9b6
commit
13275017f6
|
@ -22,13 +22,14 @@ function updateOrCreate(){
|
||||||
then
|
then
|
||||||
echo "Clone of $url"
|
echo "Clone of $url"
|
||||||
git clone --bare --mirror $url $repodir
|
git clone --bare --mirror $url $repodir
|
||||||
|
# create FETCH_HEAD needed by other scripts
|
||||||
|
cd $repodir
|
||||||
|
git fetch --prune
|
||||||
else
|
else
|
||||||
cd $repodir
|
cd $repodir
|
||||||
echo "Update of $url"
|
echo "Update of $url"
|
||||||
git fetch --prune
|
git fetch --prune
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# tags
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function getLastCommit(){
|
function getLastCommit(){
|
||||||
|
|
Loading…
Reference in New Issue
Block a user