Skip to content

Commit

Permalink
clone: now uses fedpkg for higher compatibility (#62)
Browse files Browse the repository at this point in the history
  • Loading branch information
juhp committed Dec 13, 2024
1 parent 60252bd commit 97f17da
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/Package.hs
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,6 @@ import Branches
import Common
import Common.System
import Git
import Krb
import Types (ChangeType(..))

fedpkg :: String -> [String] -> IO String
Expand Down Expand Up @@ -372,9 +371,7 @@ clonePkg quiet cloneuser mbr pkg = do
msgout
git_ "clone" $ ["--quiet"] ++ mbranch ++ ["https://src.fedoraproject.org/rpms/" ++ pkg <.> "git"]
UserClone -> do
fasid <- fasIdFromKrb
msgout
git_ "clone" $ ["--quiet"] ++ mbranch ++ ["ssh://" ++ fasid ++ "@pkgs.fedoraproject.org/rpms/" ++ pkg <.> "git"]
fedpkg_ "clone" $ mbranch ++ [pkg]
where
msgout =
putStrLn $ if quiet then "cloning..." else "Cloning:" +-+ pkg
Expand Down

0 comments on commit 97f17da

Please sign in to comment.