Procházet zdrojové kódy

Fix commit hash reporting

bryan před 2 roky
rodič
revize
5867c8111e
1 změnil soubory, kde provedl 3 přidání a 3 odebrání
  1. 3 3
      openwrtbuilder

+ 3 - 3
openwrtbuilder

@@ -554,9 +554,6 @@ fromSource() {
     (( DEBUG )) && git -C "$GITDIR" log -1
     (( DEBUG )) && git -C "$GITDIR" describe
 
-    commit=$(git -C "$GITDIR" rev-parse HEAD)
-    debug "Current commit hash: $commit"
-
     wt_cmd=(git -C "$GITDIR"
             worktree add
             --force
@@ -569,6 +566,9 @@ fromSource() {
         execute "${wt_cmd[@]}" "origin/openwrt-${RELEASE%.*}"
     fi
 
+    commit=$(git -C "$SOURCEDIR" rev-parse HEAD)
+    debug "Current commit hash: $commit"
+
     seed_file="$SOURCEDIR/.config"
     debug "seed_file: $seed_file"