Skip to content

Commit

Permalink
Don't hardcode 'master' into the link generator
Browse files Browse the repository at this point in the history
Just leaving it empty now checks out HEAD, which is the default
branch.

Fixes #311
  • Loading branch information
yuvipanda committed Jan 9, 2024
1 parent 5e4a1e3 commit d93d84a
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions docs/link.rst
Original file line number Diff line number Diff line change
Expand Up @@ -83,12 +83,7 @@ Use the following form to create your own ``nbgitpuller`` links.
<div class="input-group-prepend">
<span class="input-group-text" id="branch-prepend-label">branch</span>
</div>
<input name="branch" id="branch" type="text" class="form-control" value="master" aria-label="Branch Name" aria-describedby="branch-prepend-label">
<small class="form-text text-muted">
Use <code>main</code> instead of <code>master</code> for
<a href="https://github.blog/changelog/2020-10-01-the-default-branch-for-newly-created-repositories-is-now-main/">
new GitHub repositories</a>
</small>
<input name="branch" id="branch" type="text" class="form-control" placeholder="default" aria-label="Branch Name" aria-describedby="branch-prepend-label">
<div class="invalid-feedback">
Must specify a branch name
</div>
Expand Down

0 comments on commit d93d84a

Please sign in to comment.