Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Release Engineering
Public
srpmproc
Commits
5762a402
Commit
5762a402
authored
Feb 14, 2021
by
Mustafa Gezen
Browse files
use rpms instead of dist
parent
dc1067cc
Changes
2
Hide whitespace changes
Inline
Side-by-side
internal/patch.go
View file @
5762a402
...
...
@@ -233,7 +233,7 @@ func getTipStream(pd *ProcessData, module string, pushBranch string) string {
log
.
Fatalf
(
"could not init git repo: %v"
,
err
)
}
remoteUrl
:=
fmt
.
Sprintf
(
"%s/
dist
/%s.git"
,
pd
.
UpstreamPrefix
,
module
)
remoteUrl
:=
fmt
.
Sprintf
(
"%s/
rpms
/%s.git"
,
pd
.
UpstreamPrefix
,
module
)
refspec
:=
config
.
RefSpec
(
"+refs/heads/*:refs/remotes/origin/*"
)
remote
,
err
:=
repo
.
CreateRemote
(
&
config
.
RemoteConfig
{
Name
:
"origin"
,
...
...
internal/process.go
View file @
5762a402
...
...
@@ -70,7 +70,7 @@ func ProcessRPM(pd *ProcessData) {
tagImportRegex
=
regexp
.
MustCompile
(
fmt
.
Sprintf
(
"refs/tags/(imports/(%s.|%s.-.+)/(.*))"
,
pd
.
ImportBranchPrefix
,
pd
.
ImportBranchPrefix
))
md
:=
pd
.
Importer
.
RetrieveSource
(
pd
)
remotePrefix
:=
"
dist
"
remotePrefix
:=
"
rpms
"
if
pd
.
ModuleMode
{
remotePrefix
=
"modules"
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment