mirror of
https://github.com/rocky-linux/srpmproc.git
synced 2024-12-04 18:36:26 +00:00
Instead of adding to RpmLocation, just append .git to remote
This commit is contained in:
parent
0ad69ea6fc
commit
3b0face514
@ -96,9 +96,9 @@ func mn(_ *cobra.Command, _ []string) {
|
||||
importer = &internal.SrpmMode{}
|
||||
} else {
|
||||
if moduleMode {
|
||||
sourceRpmLocation = fmt.Sprintf("%s/%s.git", modulePrefix, sourceRpm)
|
||||
sourceRpmLocation = fmt.Sprintf("%s/%s", modulePrefix, sourceRpm)
|
||||
} else {
|
||||
sourceRpmLocation = fmt.Sprintf("%s/%s.git", rpmPrefix, sourceRpm)
|
||||
sourceRpmLocation = fmt.Sprintf("%s/%s", rpmPrefix, sourceRpm)
|
||||
}
|
||||
importer = &internal.GitMode{}
|
||||
}
|
||||
|
@ -73,7 +73,7 @@ func (g *GitMode) RetrieveSource(pd *data.ProcessData) *data.ModeData {
|
||||
refspec := config.RefSpec("+refs/heads/*:refs/remotes/*")
|
||||
remote, err := repo.CreateRemote(&config.RemoteConfig{
|
||||
Name: "upstream",
|
||||
URLs: []string{pd.RpmLocation},
|
||||
URLs: []string{fmt.Sprintf("%s.git", pd.RpmLocation)},
|
||||
Fetch: []config.RefSpec{refspec},
|
||||
})
|
||||
if err != nil {
|
||||
|
Loading…
Reference in New Issue
Block a user