Add GitLab preset
This commit is contained in:
parent
27ae865a74
commit
b9e3c769d9
|
@ -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 (
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -19,3 +19,4 @@
|
|||
</path>
|
||||
</preset>
|
||||
</sparkleshare>
|
||||
|
||||
|
|
BIN
SparkleShare/Common/Presets/gitlab.png
Normal file
BIN
SparkleShare/Common/Presets/gitlab.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.1 KiB |
21
SparkleShare/Common/Presets/gitlab.xml
Normal file
21
SparkleShare/Common/Presets/gitlab.xml
Normal 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>
|
||||
|
BIN
SparkleShare/Common/Presets/gitlab@2x.png
Normal file
BIN
SparkleShare/Common/Presets/gitlab@2x.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 2.4 KiB |
|
@ -17,3 +17,4 @@
|
|||
</path>
|
||||
</preset>
|
||||
</sparkleshare>
|
||||
|
||||
|
|
|
@ -19,3 +19,4 @@
|
|||
</path>
|
||||
</preset>
|
||||
</sparkleshare>
|
||||
|
||||
|
|
|
@ -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">
|
||||
|
|
Loading…
Reference in a new issue