Skip to content

Commit 570d80e

Browse files
wmdietlcpovirk
andcommitted
Handle both https and git@ clones (#158)
Co-authored-by: Chris Povirk <[email protected]>
1 parent 70ca5bb commit 570d80e

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

initialize-project

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,12 +55,14 @@ git_clone() {
5555

5656
local forking_org
5757
forking_org="$(forking_org)"
58-
if [[ -n "${forking_org}" ]] && [[ "${forking_org}" != "https://github.com/jspecify" ]]; then
58+
if [[ -n "${forking_org}" ]] \
59+
&& [[ "${forking_org}" != "https://github.com/jspecify" ]] \
60+
&& [[ "${forking_org}" != "[email protected]:jspecify" ]] ; then
5961
if run "${git[@]}" "${forking_org}/${repo}.git" "../${repo}"; then
6062
return
6163
fi
6264
fi
63-
if [[ "${repo}" == checker-framework ]]; then
65+
if [[ "${repo}" == "checker-framework" ]]; then
6466
forking_org=https://github.com/eisop
6567
else
6668
forking_org=https://github.com/jspecify

0 commit comments

Comments
 (0)