diff --git a/src/de/uni_passau/fim/seibt/gitwrapper/repo/Reference.java b/src/de/uni_passau/fim/seibt/gitwrapper/repo/Reference.java
index e75abedd0e143e6e685ff2e616eabbf836b0b6c2..ae967b18da6db238d6d2262de0f1399c19179c5d 100644
--- a/src/de/uni_passau/fim/seibt/gitwrapper/repo/Reference.java
+++ b/src/de/uni_passau/fim/seibt/gitwrapper/repo/Reference.java
@@ -124,16 +124,16 @@ public abstract class Reference {
         }
 
         Commit commit = (Commit) o;
-        return Objects.equals(repo, commit.repo) && Objects.equals(id, commit.id);
+        return Objects.equals(id, commit.id) && Objects.equals(repo, commit.repo);
     }
 
     @Override
     public final int hashCode() {
-        return Objects.hash(repo, id);
+        return Objects.hash(id, repo);
     }
 
     @Override
     public String toString() {
-        return String.valueOf(id);
+        return id;
     }
 }