[damned-lies] Add 'git@' as a write-enabled repo sign
- From: Claude Paroz <claudep src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [damned-lies] Add 'git@' as a write-enabled repo sign
- Date: Mon, 28 May 2018 16:14:56 +0000 (UTC)
commit a7ad96172bf5854eafaf5b1d7df42320f9e169e7
Author: Claude Paroz <claude 2xlibre net>
Date: Mon May 28 18:14:34 2018 +0200
Add 'git@' as a write-enabled repo sign
stats/models.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/stats/models.py b/stats/models.py
index 28736868..d27d22d4 100644
--- a/stats/models.py
+++ b/stats/models.py
@@ -309,7 +309,7 @@ class Branch(models.Model):
return utils.url_join(self.module.vcs_root, self.module.name, "branches", self.name)
def is_vcs_readonly(self):
- return 'ssh://' not in self.module.vcs_root
+ return 'ssh://' not in self.module.vcs_root and not self.module.vcs_root.startswith('git@')
def get_vcs_web_url(self):
if self.module.vcs_type in ('hg', 'git'):
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]