controller: .git wasn't stripped off of folder names

This commit is contained in:
Hylke Bons 2013-01-18 21:21:26 +00:00
parent aed8c86a38
commit 1875041f76

View file

@ -640,6 +640,9 @@ namespace SparkleShare {
this.fetcher.Complete ();
string canonical_name = Path.GetFileName (this.fetcher.RemoteUrl.AbsolutePath);
if (canonical_name.EndsWith (".git"))
canonical_name = canonical_name.Replace (".git", "");
canonical_name = canonical_name.Replace ("-crypto", "");
canonical_name = canonical_name.Replace ("_", " ");