Selaa lähdekoodia

Correct command when checking for tag

Christopher Mullins 7 vuotta sitten
vanhempi
commit
bd9227630e
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. 1 1
      .prepare_release

+ 1 - 1
.prepare_release

@@ -6,7 +6,7 @@ prepare_log() {
   echo "[prepare release] -- $@"
 }
 
-if [ -z "$(git tag -l --points-at HEAD)" ]; then
+if ! git describe --exact-match HEAD 2>/dev/null; then
   prepare_log "Skipping non-tagged commit."
   exit 0
 fi