Skip to content

Commit

Permalink
Prefix with tag- to resolve ambiguity (eth-educators#1634)
Browse files Browse the repository at this point in the history
  • Loading branch information
yorickdowne authored Nov 15, 2023
1 parent 8177d8d commit bf59b1d
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions ethd
Original file line number Diff line number Diff line change
Expand Up @@ -1025,11 +1025,7 @@ update() {
current_branch=$(${__as_owner} git rev-parse --abbrev-ref HEAD)
if [ ! "${current_branch}" = "${value}" ]; then
${__as_owner} git fetch --tags
if ${__as_owner} git branch --list | grep -qF "${value}"; then
${__as_owner} git checkout "tags/${value}"
else
${__as_owner} git checkout -b "${value}" "tags/${value}"
fi
${__as_owner} git checkout -B "tag-${value}" "tags/${value}"
fi
fi
export GITEXITCODE=$?
Expand Down

0 comments on commit bf59b1d

Please sign in to comment.