Skip to content

Commit 49bc24f

Browse files
author
root
committed
Fix tests
1 parent 35d9a3e commit 49bc24f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

app/models/repository_git_extra.rb

+2-1
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,8 @@ def check_if_default_branch_changed
8080
def check_urls_order_consistency
8181
check_ssh_url
8282
check_git_http_urls
83-
check_go_url
83+
# Add go url only for existing record to avoid chicken/egg issue
84+
check_go_url unless new_record?
8485
check_git_url
8586
end
8687

0 commit comments

Comments
 (0)