Get git commit hash to address collisions

此提交包含在:
2023-01-30 14:49:55 -05:00
父節點 7bea684ecf
當前提交 e61493239e

查看文件

@@ -614,7 +614,7 @@ fromSource() {
debug "${FUNCNAME[0]}"
declare src_url="https://github.com/openwrt/openwrt.git"
declare pkg kopt opt
declare pkg kopt opt commit
declare -a make_opts config_opts
declare -g SEED_FILE="$GITWORKTREEDIR/.config"
@@ -627,6 +627,9 @@ fromSource() {
fi
git -C "$GITSRCDIR" pull
commit=$(git -C "$GITSRCDIR" rev-parse HEAD)
debug "commit hash: $commit"
if [[ $RELEASE == "snapshot" ]]; then
git -C "$GITSRCDIR" worktree add -d "$GITWORKTREEDIR" master