Add GitLab preset

This commit is contained in:
Hylke Bons 2016-04-06 10:12:38 +01:00
parent 27ae865a74
commit b9e3c769d9
9 changed files with 37 additions and 2 deletions

View file

@ -343,7 +343,7 @@ namespace SparkleShare {
foreach (string folder_path in Directory.GetDirectories (group_path)) {
string folder_name = Path.GetFileName (folder_path);
if (Config.GetIdentifierForFolder (folder_name) != null)
if (Config.IdentifierByName (folder_name) != null)
continue;
string identifier_file_path = Path.Combine (folder_path, ".sparkleshare");
@ -391,7 +391,7 @@ namespace SparkleShare {
{
BaseRepository repo = null;
string folder_name = Path.GetFileName (folder_path);
string backend = Config.GetBackendForFolder (folder_name);
string backend = Config.BackendByName (folder_name);
try {
repo = (BaseRepository) Activator.CreateInstance (

View file

@ -1,9 +1,11 @@
dist_presets_DATA = \
bitbucket.xml \
github.xml \
gitlab.xml \
own-server.xml \
planio.xml \
github.png \
gitlab.png \
bitbucket.png \
planio.png \
own-server.png

View file

@ -19,3 +19,4 @@
</path>
</preset>
</sparkleshare>

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

View file

@ -0,0 +1,21 @@
<?xml version="1.0" encoding="UTF-8"?>
<sparkleshare>
<preset>
<info>
<name>GitLab.com</name>
<description>Open Source GitHub alternative</description>
<icon>gitlab.png</icon>
<backend>Git</backend>
<fingerprint>b6:03:0e:39:97:9e:d0:e7:24:ce:a3:77:3e:01:42:09</fingerprint>
</info>
<address>
<value>ssh://git@gitlab.com/</value>
<example/>
</address>
<path>
<value/>
<example>/username/project</example>
</path>
</preset>
</sparkleshare>

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.4 KiB

View file

@ -17,3 +17,4 @@
</path>
</preset>
</sparkleshare>

View file

@ -19,3 +19,4 @@
</path>
</preset>
</sparkleshare>

View file

@ -263,6 +263,15 @@
<BundleResource Include="Resources\sparkleshare-folder-yosemite.icns">
<Link>Resources\sparkleshare-folder-yosemite.icns</Link>
</BundleResource>
<BundleResource Include="..\Common\Presets\gitlab.png">
<Link>Presets\gitlab.png</Link>
</BundleResource>
<BundleResource Include="..\Common\Presets\gitlab%402x.png">
<Link>Presets\gitlab%402x.png</Link>
</BundleResource>
<BundleResource Include="..\Common\Presets\gitlab.xml">
<Link>Presets\gitlab.xml</Link>
</BundleResource>
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\..\Sparkles\Sparkles.csproj">