-
Notifications
You must be signed in to change notification settings - Fork 505
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Always use a clean checkout for clones during release-notes
This avoids a large category of failure modes where an existing on-disk repository is in an unexpected state. We also delete the repo afterwards to avoid multiple runs filling up the disk. This change therefore removes configuration flags for the fork locations. Also included: * Set the upstream when pushing a new branch * Use HTTP transport for git instead of SSH As we are now using the GitHub token for authentication, we need the HTTP URL and not the SSH one. * Remove check for branch existing on remote The existing code does not work for a number of reasons: - It only checks the default remote, not the user's fork. - Any error returned would be treated as a success, not just a "not found". Even without this check there is no risk, as GitHub will simply reject the pushing of a new branch without `--force`, which we do not use. * Use existing branch if it already exists The `-B` flag to `git checkout` will create the branch if it does not exist (existing beaviour) but will also use it if it does exist.
- Loading branch information
1 parent
01df93c
commit 0601453
Showing
3 changed files
with
39 additions
and
47 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters