Skip to content

Commit

Permalink
templater: use "git" constant to build HEAD@git ref name
Browse files Browse the repository at this point in the history
  • Loading branch information
yuja committed Oct 27, 2023
1 parent 01d4745 commit 817ca7f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cli/src/commit_templater.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ use jj_lib::hex_util::to_reverse_hex;
use jj_lib::id_prefix::IdPrefixContext;
use jj_lib::op_store::{RefTarget, WorkspaceId};
use jj_lib::repo::Repo;
use jj_lib::rewrite;
use jj_lib::{git, rewrite};
use once_cell::unsync::OnceCell;

use crate::formatter::Formatter;
Expand Down Expand Up @@ -515,7 +515,7 @@ fn extract_git_head(repo: &dyn Repo, commit: &Commit) -> Vec<RefName> {
if target.added_ids().contains(commit.id()) {
let ref_name = RefName {
name: "HEAD".to_owned(),
remote: Some("git".to_owned()),
remote: Some(git::REMOTE_NAME_FOR_LOCAL_GIT_REPO.to_owned()),
conflict: target.has_conflict(),
synced: false, // has no local counterpart
};
Expand Down

0 comments on commit 817ca7f

Please sign in to comment.