mirror of
https://github.com/sourcegit-scm/sourcegit.git
synced 2024-12-25 21:07:20 -08:00
fix: turn off GPG Signing
when create a new tag does not work if tag.gpgsign
is enabled
This commit is contained in:
parent
857ba85d9f
commit
249706c1ef
2 changed files with 5 additions and 2 deletions
|
@ -16,7 +16,7 @@ namespace SourceGit.Commands
|
||||||
|
|
||||||
public static bool Add(string repo, string name, string basedOn, string message, bool sign)
|
public static bool Add(string repo, string name, string basedOn, string message, bool sign)
|
||||||
{
|
{
|
||||||
var param = sign ? "-s -a" : "-a";
|
var param = sign ? "--sign -a" : "--no-sign -a";
|
||||||
var cmd = new Command();
|
var cmd = new Command();
|
||||||
cmd.WorkingDirectory = repo;
|
cmd.WorkingDirectory = repo;
|
||||||
cmd.Context = repo;
|
cmd.Context = repo;
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
using System.ComponentModel.DataAnnotations;
|
using System;
|
||||||
|
using System.ComponentModel.DataAnnotations;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
|
|
||||||
namespace SourceGit.ViewModels
|
namespace SourceGit.ViewModels
|
||||||
|
@ -50,6 +51,7 @@ namespace SourceGit.ViewModels
|
||||||
_basedOn = branch.Head;
|
_basedOn = branch.Head;
|
||||||
|
|
||||||
BasedOn = branch;
|
BasedOn = branch;
|
||||||
|
SignTag = new Commands.Config(repo.FullPath).Get("tag.gpgsign").Equals("true", StringComparison.OrdinalIgnoreCase);
|
||||||
View = new Views.CreateTag() { DataContext = this };
|
View = new Views.CreateTag() { DataContext = this };
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -59,6 +61,7 @@ namespace SourceGit.ViewModels
|
||||||
_basedOn = commit.SHA;
|
_basedOn = commit.SHA;
|
||||||
|
|
||||||
BasedOn = commit;
|
BasedOn = commit;
|
||||||
|
SignTag = new Commands.Config(repo.FullPath).Get("tag.gpgsign").Equals("true", StringComparison.OrdinalIgnoreCase);
|
||||||
View = new Views.CreateTag() { DataContext = this };
|
View = new Views.CreateTag() { DataContext = this };
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue