mirror of
https://forgejo.stefka.eu/jiriks74/create-pull-request.git
synced 2025-01-18 16:01:06 +01:00
checkout working base
This commit is contained in:
parent
2b011faafd
commit
1bf5cb73d1
3 changed files with 66 additions and 0 deletions
2
dist/index.js
vendored
2
dist/index.js
vendored
|
@ -258,6 +258,8 @@ function createOrUpdateBranch(git, commitMessage, base, branch, branchRemoteName
|
|||
result.headSha = yield git.revParse('HEAD');
|
||||
// Delete the temporary branch
|
||||
yield git.exec(['branch', '--delete', '--force', tempBranch]);
|
||||
// Checkout the working base to leave the local repository as it was found
|
||||
yield git.checkout(workingBase);
|
||||
return result;
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue