Merge pull request #1982 from stefand/main
Don't fetch a submodule if the commit is already known
This commit is contained in:
commit
7cb6096321
@ -232,7 +232,7 @@ function update_repo() {
|
||||
|
||||
if [ -d $1 -a -d $1/.git ]; then
|
||||
cd $1
|
||||
git fetch --all
|
||||
git cat-file -e $3 || git fetch --all
|
||||
git checkout --force $3
|
||||
cd - > /dev/null
|
||||
else
|
||||
|
Loading…
x
Reference in New Issue
Block a user