mirror of
https://github.com/gitui-org/gitui
synced 2026-05-23 08:58:21 +00:00
Fix typo in commit.rs (#2150)
This commit is contained in:
parent
3342544dfb
commit
ef6abbba0f
1 changed files with 1 additions and 1 deletions
|
|
@ -126,7 +126,7 @@ pub fn commit(repo_path: &RepoPath, msg: &str) -> Result<CommitId> {
|
|||
|
||||
// manually advance to the new commit ID
|
||||
// repo.commit does that on its own, repo.commit_signed does not
|
||||
// if there is no head, read default branch or defaul to "master"
|
||||
// if there is no head, read default branch or default to "master"
|
||||
if let Ok(mut head) = repo.head() {
|
||||
head.set_target(commit_id, msg)?;
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Reference in a new issue