save defaultBranch we looked up for the timestamp lookup
This commit is contained in:
parent
d84955e6cd
commit
c12dfb21be
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue