Updated master/main branches error info

pull/909/head
Bartosz Kardas 2022-12-12 00:04:09 +01:00
rodzic b85df8f993
commit 0b9154ae2b
2 zmienionych plików z 5 dodań i 5 usunięć

Wyświetl plik

@ -45,10 +45,10 @@ class Git(ContentProvider):
self.log.error(
f"Failed to check out ref {ref}", extra=dict(phase=R2dState.FAILED)
)
if ref == "main":
if ref == "master" or ref == "main":
msg = (
"Failed to check out the 'main' branch. "
"Maybe the default branch is not named 'main' "
f"Failed to check out the '{ref}' branch. "
f"Maybe the default branch is not named '{ref}' "
"for this repository.\n\nTry not explicitly "
"specifying `--ref`."
)

Wyświetl plik

@ -12,12 +12,12 @@
# Test that a full remote/ref works
- name: Binder Examples - Requirements
url: https://github.com/binder-examples/requirements
ref: origin/master
ref: origin/main
verify: python -c 'import matplotlib'
# Test that ref is added to branch if not present
- name: Binder Examples - Requirements
url: https://github.com/binder-examples/requirements
ref: master
ref: main
verify: python -c 'import matplotlib'
# Test that tags work + ref is added to tag if not present
- name: Binder Examples - Requirements