summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/main.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.rs b/src/main.rs
index e7d70b3..d6e9013 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -195,7 +195,7 @@ fn main() -> Result<()> {
match reference.peel_to_commit() {
Ok(commit) => {
let oid = reference.target().expect("Resolved reference is not a direct reference?");
- refmap.insert(oid, RefInfo { reference, commit });
+ refmap.insert(commit.id(), RefInfo { reference, commit });
// println!("{} {}",
// reference.name().expect("Invalid utf8 in reference name"),
// commit.id());