Skip to content

Commit

Permalink
[copr-dist-git] fixed mock-scm
Browse files Browse the repository at this point in the history
  • Loading branch information
clime committed Sep 16, 2016
1 parent 4d197ba commit 0d7db03
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions dist-git/dist_git/dist_git_importer.py
Original file line number Diff line number Diff line change
Expand Up @@ -314,9 +314,9 @@ def get_srpm(self):

def scm_option_get(self, package_name, branch):
return {
"git": branch and "git_get='git clone --depth 1 --branch {branch} {0} {1}'" or \
"git_get='git clone --depth 1 {0} {1}'",
"svn": "git_get='git svn clone {0} {1}'"
"git": branch and "git_get=git clone --depth 1 --branch {branch} {0} {1}" or \
"git_get=git clone --depth 1 {0} {1}",
"svn": "git_get=git svn clone {0} {1}"
}[self.task.mock_scm_type].format(self.task.mock_scm_url, package_name, branch=branch)


Expand Down

0 comments on commit 0d7db03

Please sign in to comment.