Skip to content

Commit 185793b

Browse files
go back to master, not last branch, because on fail, it checks out a random branch
1 parent 6f78c2c commit 185793b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

R/release.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ release_gh <- function(bump = "dev", is_cran = bump != "dev") {
2626
new_dsc <- release_prechecks(bump, is_cran)
2727
new_dsc$write()
2828
git_branch_set(is_cran)
29-
on.exit(sys_call("git", c("checkout", "-")), add = TRUE)
29+
on.exit(sys_call("git", c("checkout", "master")), add = TRUE)
3030
# if we fail, must reset version, if we succeed, it's not stage
3131
# on.exit(sys_call("git", c("reset", "HEAD", '--hard')), add = TRUE)
3232

0 commit comments

Comments
 (0)