diff options
author | Ray Strode <rstrode@redhat.com> | 2016-12-05 17:42:39 +0000 |
---|---|---|
committer | Ray Strode <rstrode@redhat.com> | 2016-12-05 17:42:39 +0000 |
commit | b0f97fdd289794cd188556c713a551bc740ac2e7 (patch) | |
tree | 3e2c0cdc0a49088577a504d6769ec7e458568726 | |
parent | 0d4ce886196fb5043223ee30eca0b35c795d14a0 (diff) |
post-receive-mirror-github: handle .git in dupes
-rwxr-xr-x | post-receive-mirror-github | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/post-receive-mirror-github b/post-receive-mirror-github index f6b2d2a..132e7e9 100755 --- a/post-receive-mirror-github +++ b/post-receive-mirror-github @@ -109,6 +109,8 @@ def get_repo_name (): if repo_namespace and repo_parts[1].startswith(repo_namespace + '-'): repo_parts[1] = repo_parts[1].replace(repo_namespace + '-', '', 1) + elif repo_namespace and repo_parts[1] == repo_namespace + ".git": + repo_parts.remove(repo_parts[1]) elif repo_namespace and repo_parts[1] == repo_namespace: repo_parts.remove(repo_parts[1]) |