dont add gitbutler as committer by default

This commit is contained in:
Kiril Videlov 2024-02-14 22:27:37 +01:00 committed by Kiril Videlov
parent 52390c9391
commit 28d5aca9c2
2 changed files with 4 additions and 4 deletions

View File

@ -24,13 +24,13 @@ impl Config<'_> {
}
pub fn user_real_comitter(&self) -> Result<bool, git::Error> {
let no_comitter = self
let gb_comitter = self
.git_repository
.config()?
.get_string("gitbutler.utmostDiscretion")
.get_string("gitbutler.gitbutlerCommitter")
.unwrap_or(Some("0".to_string()))
.unwrap_or("0".to_string());
Ok(no_comitter == "1")
Ok(gb_comitter == "0")
}
pub fn user_name(&self) -> Result<Option<String>, git::Error> {

View File

@ -173,7 +173,7 @@
</div>
{#if annotateCommits}
<div class="commit-box__committer text-base-11">
GitButler will be the committer of this commit. <a
Consider spreading the word about GitButler. <a
class="text-bold"
target="_blank"
rel="noreferrer"