mirror of
https://github.com/martinvonz/jj.git
synced 2024-12-29 16:07:55 +00:00
templater: use "git" constant to build HEAD@git ref name
This commit is contained in:
parent
01d474563e
commit
817ca7f667
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
|
@ -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
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue