@@ -38,8 +38,8 @@ def tokenize_spec(spec):
3838 spec_parts = spec .split ("/" , 2 ) # allow ref to contain "/"
3939 if len (spec_parts ) != 3 :
4040 msg = f'Spec is not of the form "user/repo/ref", provided: "{ spec } ".'
41- if len (spec_parts ) == 2 and spec_parts [- 1 ] != " master" :
42- msg += f' Did you mean "{ spec } /master "?'
41+ if len (spec_parts ) == 2 and spec_parts [- 1 ] not in ( "main" , " master") :
42+ msg += f' Did you mean "{ spec } /main "?'
4343 raise ValueError (msg )
4444
4545 return spec_parts
@@ -456,8 +456,8 @@ class GitRepoProvider(RepoProvider):
456456 <url-escaped-namespace>/<resolved_ref>
457457
458458 eg:
459- https%3A%2F%2Fgithub.com%2Fjupyterhub%2Fzero-to-jupyterhub-k8s/master
460- https%3A%2F%2Fgithub.com%2Fjupyterhub%2Fzero-to-jupyterhub-k8s/f7f3ff6d1bf708bdc12e5f10e18b2a90a4795603
459+ https%3A%2F%2Fgithub.com%2Fbinder-examples%2Fconda/main
460+ https%3A%2F%2Fgithub.com%2Fbinder-examples%2Fconda/034931911e853252322f2309f1246a4f1076fd7d
461461
462462 This provider is typically used if you are deploying binderhub yourself and you require access to repositories that
463463 are not in one of the supported providers.
@@ -957,6 +957,7 @@ class GistRepoProvider(GitHubRepoProvider):
957957 The ref is optional, valid values are
958958 - a full sha1 of a ref in the history
959959 - master
960+ - HEAD for the default branch
960961
961962 If master or no ref is specified the latest revision will be used.
962963 """
0 commit comments