controller: .git wasn't stripped off of folder names
This commit is contained in:
parent
e1813d9d5d
commit
93a921322b
|
@ -640,6 +640,9 @@ namespace SparkleShare {
|
||||||
|
|
||||||
this.fetcher.Complete ();
|
this.fetcher.Complete ();
|
||||||
string canonical_name = Path.GetFileName (this.fetcher.RemoteUrl.AbsolutePath);
|
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 ("-crypto", "");
|
||||||
canonical_name = canonical_name.Replace ("_", " ");
|
canonical_name = canonical_name.Replace ("_", " ");
|
||||||
|
|
Loading…
Reference in a new issue