Fix commit hash reporting

This commit is contained in:
2023-02-16 15:12:17 -05:00
parent 128c141843
commit 5867c8111e

View File

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