save defaultBranch we looked up for the timestamp lookup

This commit is contained in:
Ben Harris 2022-07-20 12:41:26 -04:00
parent d84955e6cd
commit c12dfb21be
1 changed files with 1 additions and 0 deletions

View File

@ -35,6 +35,7 @@ func GetBranchTimestamp(owner, repo, branch, giteaRoot, giteaAPIToken string, br
return nil
}
result.Branch = defaultBranch
branch = defaultBranch
}
timestamp, err := giteaGetRepoBranchTimestamp(giteaRoot, owner, repo, branch, giteaAPIToken)