Skip to content

Commit edbc4d8

Browse files
author
Toby McLaughlin
committed
Use explicit git branches when building images
1 parent 951d2c1 commit edbc4d8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ $(TARGETS:%=%-push): $(TARGETS:%=%-checkout)
2424
$(TARGETS:%=%-checkout):
2525
test -d stack/$(@:%-checkout=%) || \
2626
git clone https://github.com/elastic/$(@:%-checkout=%)-docker.git stack/$(@:%-checkout=%)
27-
(cd stack/$(@:%-checkout=%) && git fetch && git reset --hard origin/$(GIT_BRANCH))
27+
(cd stack/$(@:%-checkout=%) && git fetch && git reset --hard && git checkout origin/$(GIT_BRANCH))
2828

2929
$(TARGETS:%=%-clean):
3030
rm -rf stack/$(@:%-clean=%)

0 commit comments

Comments
 (0)