Skip to content

Commit

Permalink
Respect forking_org if it is not "jspecify"
Browse files Browse the repository at this point in the history
  • Loading branch information
wmdietl committed Dec 6, 2023
1 parent 939a0af commit f690acc
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions initialize-project
Original file line number Diff line number Diff line change
Expand Up @@ -53,19 +53,18 @@ git_clone() {
fi
git+=("$@")

if [[ "${repo}" == "checker-framework" ]]; then
run "${git[@]}" "https://github.com/eisop/checker-framework.git" "../checker-framework"
return
fi

local forking_org
forking_org="$(forking_org)"
if [[ -n "${forking_org}" ]]; then
if [[ -n "${forking_org}" && "${forking_org}" != "jspecify" ]]; then
if run "${git[@]}" "${forking_org}/${repo}.git" "../${repo}"; then
return
fi
fi
run "${git[@]}" "https://github.com/jspecify/${repo}.git" "../${repo}"
if [[ "${repo}" == "checker-framework" ]]; then
run "${git[@]}" "https://github.com/eisop/checker-framework.git" "../checker-framework"
else
run "${git[@]}" "https://github.com/jspecify/${repo}.git" "../${repo}"
fi
}

# Fetch all branches even when $SHALLOW is set so we can check out
Expand Down

0 comments on commit f690acc

Please sign in to comment.