Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Shawn Webb
Git Lab
Commits
5f4b84a7
Unverified
Commit
5f4b84a7
authored
May 27, 2021
by
Jonah Brüchert
Browse files
Fix checkout command if the default branch is not "master"
parent
0cb2e8b1
Changes
1
Show whitespace changes
Inline
Side-by-side
lab/mergerequestcheckout.py
View file @
5f4b84a7
...
...
@@ -79,7 +79,6 @@ class MergeRequestCheckout(RepositoryConnection):
print
(
"Aborting"
)
sys
.
exit
(
1
)
self
.
_local_repo
.
refs
.
master
.
checkout
()
self
.
_local_repo
.
delete_head
(
self
.
__mr
.
source_branch
,
"-f"
)
head
=
self
.
_local_repo
.
create_head
(
self
.
__mr
.
source_branch
,
fetch_info
.
ref
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment