Merge pull request #660 from kozze89/master
Support lower case only repos
This commit is contained in:
commit
9fd041a113
|
@ -95,6 +95,15 @@ namespace SparkleShare {
|
|||
}
|
||||
}
|
||||
|
||||
public Boolean LowerCasePath {
|
||||
get {
|
||||
if (GetValue ("info", "lower_case_path").Equals ("true"))
|
||||
return true;
|
||||
else
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
private XmlDocument xml = new XmlDocument ();
|
||||
private string plugin_directory;
|
||||
|
|
|
@ -316,6 +316,9 @@ namespace SparkleShare {
|
|||
remote_path = remote_path.Trim ();
|
||||
remote_path = remote_path.TrimEnd ("/".ToCharArray ());
|
||||
|
||||
if (SelectedPlugin.LowerCasePath)
|
||||
remote_path = remote_path.ToLower ();
|
||||
|
||||
SyncingFolder = Path.GetFileNameWithoutExtension (remote_path);
|
||||
PreviousAddress = address;
|
||||
PreviousPath = remote_path;
|
||||
|
|
|
@ -6,6 +6,7 @@
|
|||
<_description>Free code hosting for Git and Mercurial</_description>
|
||||
<icon>bitbucket.png</icon>
|
||||
<backend>Git</backend>
|
||||
<lower_case_path>true</lower_case_path>
|
||||
</info>
|
||||
<address>
|
||||
<value>ssh://git@bitbucket.org/</value>
|
||||
|
|
Loading…
Reference in a new issue