[Blends-commit] r3190 - /blends/trunk/webtools/blendstasktools.py
tille at users.alioth.debian.org
tille at users.alioth.debian.org
Sat Feb 25 22:37:36 UTC 2012
Author: tille
Date: Sat Feb 25 22:37:35 2012
New Revision: 3190
URL: http://svn.debian.org/wsvn/blends/?sc=1&rev=3190
Log:
Try even harder to guess Vcs-Browser.
Modified:
blends/trunk/webtools/blendstasktools.py
Modified: blends/trunk/webtools/blendstasktools.py
URL: http://svn.debian.org/wsvn/blends/blends/trunk/webtools/blendstasktools.py?rev=3190&op=diff
==============================================================================
--- blends/trunk/webtools/blendstasktools.py (original)
+++ blends/trunk/webtools/blendstasktools.py Sat Feb 25 22:37:35 2012
@@ -557,7 +557,9 @@
else:
logger.warning("Unknown VCS for " + vcs_url)
return HOMEPAGENONE
- if vcs_url.startswith('http:'):
+ if vcs_url.startswith('https://github.com') and vcs_url.endswith('.git'):
+ ret_url = re.sub('.git$', '', vcs_url)
+ elif vcs_url.startswith('http:'):
return vcs_url
if ret_url == vcs_url:
logger.warning("Unable to obtain Vcs-Browser from " + vcs_url)
More information about the Blends-commit
mailing list