Skip to content

Commit

Permalink
Merge pull request #200 from natverse/fix/download-630
Browse files Browse the repository at this point in the history
fix downloading v630 annotations
  • Loading branch information
jefferis authored Mar 26, 2024
2 parents 90e6217 + 97e6eaf commit 24e4486
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions R/release-data.R
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,12 @@ git_pull_helper<-function(repo, branch='main'){
tr <- git2r::tags(repo)
if(branch %in% names(tr)) {
git2r::checkout(tr[[branch]])
} else git2r::checkout(repo, branch = branch)
# necessary to update local checkout to match remote
git2r::pull(repo)
} else {
git2r::checkout(repo, branch = branch)
# necessary to update local checkout to match remote when on branch
# nb not required for a tag (unless that changes ...)
git2r::pull(repo)
}
}

#' Read or return path to FlyWire annotations manuscript supplementary file
Expand Down

0 comments on commit 24e4486

Please sign in to comment.