summaryrefslogtreecommitdiffstats
path: root/src/qtmoduleupdater/qt5.go
diff options
context:
space:
mode:
authorSimon Hausmann <simon.hausmann@qt.io>2020-01-30 22:51:02 +0100
committerSimon Hausmann <simon.hausmann@qt.io>2020-01-30 22:51:34 +0100
commit5e4ebbd78b01c77e8afe57d55058b080ee162b10 (patch)
tree07631984d5107961b16eb7833236aafd42de2f00 /src/qtmoduleupdater/qt5.go
parentdb33107c91b3b616d62b98f544ba5f43e048451a (diff)
When posting qt5 updates, respect the product fetch ref
Change-Id: Icfab559dec4aecdec8b2b50618ba3cead4ea0dc0 Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
Diffstat (limited to 'src/qtmoduleupdater/qt5.go')
-rw-r--r--src/qtmoduleupdater/qt5.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/qtmoduleupdater/qt5.go b/src/qtmoduleupdater/qt5.go
index 038a41e2..7670441c 100644
--- a/src/qtmoduleupdater/qt5.go
+++ b/src/qtmoduleupdater/qt5.go
@@ -171,7 +171,7 @@ func getQt5ProductModules(productProject string, branchOrRef string, productFetc
return listSubmodules(productRepo, productRepoURL, productHead)
}
-func prepareQt5Update(product string, branch string, updatedModules map[string]*Module, gerrit *gerritInstance) error {
+func prepareQt5Update(product string, branch string, productFetchRef string, updatedModules map[string]*Module, gerrit *gerritInstance) error {
productRepoURL, err := RepoURL(product)
if err != nil {
return fmt.Errorf("Error determining %s repo URL: %s", product, err)
@@ -182,7 +182,7 @@ func prepareQt5Update(product string, branch string, updatedModules map[string]*
return fmt.Errorf("Error opening product repo: %s", err)
}
- productHead, err := productRepo.Fetch(productRepoURL, "refs/heads/"+branch)
+ productHead, err := productRepo.Fetch(productRepoURL, productFetchRef)
if err != nil {
return err
}