mirror of
https://github.com/gitbutlerapp/gitbutler.git
synced 2024-10-26 21:19:52 +03:00
dont add gitbutler as committer by default
This commit is contained in:
parent
52390c9391
commit
28d5aca9c2
@ -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> {
|
||||
|
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user