Merge "Git rev-list --max-count needs an = for assignment"
This commit is contained in:
commit
e6e2f774ab
@ -112,7 +112,7 @@ for MOD in ${!SOURCE_MODULES[*]} ; do
|
|||||||
# fetch the latest refs from the repo
|
# fetch the latest refs from the repo
|
||||||
$GIT_CMD_BASE fetch
|
$GIT_CMD_BASE fetch
|
||||||
# make sure the correct revision is installed, I have to use rev-list b/c rev-parse does not work with tags
|
# make sure the correct revision is installed, I have to use rev-list b/c rev-parse does not work with tags
|
||||||
if [ `${GIT_CMD_BASE} rev-list HEAD --max-count 1` != `${GIT_CMD_BASE} rev-list ${SOURCE_MODULES[$MOD]} --max-count 1` ]; then
|
if [ `${GIT_CMD_BASE} rev-list HEAD --max-count=1` != `${GIT_CMD_BASE} rev-list ${SOURCE_MODULES[$MOD]} --max-count=1` ]; then
|
||||||
# checkout correct revision
|
# checkout correct revision
|
||||||
$GIT_CMD_BASE checkout ${SOURCE_MODULES[$MOD]}
|
$GIT_CMD_BASE checkout ${SOURCE_MODULES[$MOD]}
|
||||||
fi
|
fi
|
||||||
|
Loading…
x
Reference in New Issue
Block a user