From 5867c8111e4b09218b3a5ab063b9e481ac79c461 Mon Sep 17 00:00:00 2001 From: bryan Date: Thu, 16 Feb 2023 15:12:17 -0500 Subject: [PATCH] Fix commit hash reporting --- openwrtbuilder | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/openwrtbuilder b/openwrtbuilder index ad7cb35..96428c5 100755 --- a/openwrtbuilder +++ b/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"