Skip to content

Commit

Permalink
Merge pull request #467 from punchagan/fix-refs-path
Browse files Browse the repository at this point in the history
Allow .zip archive URLs along with .tar.gz
  • Loading branch information
shakthimaan authored Feb 1, 2024
2 parents ac6e5a0 + ed013b7 commit 13ab71d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion run_all_custom.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ find_commit () {
COMMIT=`git ls-remote https://github.com/ocaml/ocaml.git refs/heads/trunk | awk -F' ' '{print $1}'`
elif [[ ${URL} == *"refs/head"* || ${URL} == *"refs/pull"* ]]; then
GIT_SOURCE=`echo ${URL} | awk -F'/archive/' '{print $1}'`
REFS_PATH=`echo ${URL} | awk -F'/archive/' '{print $2}' | sed 's/.tar.gz//g'`
REFS_PATH=`echo ${URL} | awk -F'/archive/' '{print $2}' | sed 's/\(.tar.gz\|.zip\)//g'`
COMMIT=`git ls-remote ${GIT_SOURCE} ${REFS_PATH} | awk -F' ' '{print $1}'`
elif [[ ${URL} == *"archive"* ]]; then
COMMIT=`echo ${URL##*/} | awk -F'.' '{print $1}'`
Expand Down

0 comments on commit 13ab71d

Please sign in to comment.