mirror of https://github.com/docker/compose.git
Fix check for tags.
If there is a branch with the same name as a tag it fails without the --tags. This was only a problem when we're branching from a git tag. Signed-off-by: Daniel Nephin <dnephin@docker.com>
This commit is contained in:
parent
4b939d3560
commit
129e2f9482
|
@ -46,7 +46,7 @@ if [ -z "$REMOTE" ]; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# handle the difference between a branch and a tag
|
# handle the difference between a branch and a tag
|
||||||
if [ -z "$(git name-rev $BASE_VERSION | grep tags)" ]; then
|
if [ -z "$(git name-rev --tags $BASE_VERSION | grep tags)" ]; then
|
||||||
BASE_VERSION=$REMOTE/$BASE_VERSION
|
BASE_VERSION=$REMOTE/$BASE_VERSION
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue