summaryrefslogtreecommitdiff
path: root/src/git.rs
diff options
context:
space:
mode:
authorSanto Cariotti <santo@dcariotti.me>2021-03-18 19:27:51 +0100
committerSanto Cariotti <santo@dcariotti.me>2021-03-18 19:27:51 +0100
commit4e266a2c2a22385a12ea16b992d345e9856f012f (patch)
tree6a5704e454616166604119bf84fe69ca035cc3b4 /src/git.rs
parent88a18cbe2a6150b2a611b943fc5a5017b3196aa0 (diff)
feat: add branch connected to head of repository
Diffstat (limited to 'src/git.rs')
-rw-r--r--src/git.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/git.rs b/src/git.rs
index 479b98c..2a8749c 100644
--- a/src/git.rs
+++ b/src/git.rs
@@ -119,7 +119,7 @@ pub fn repo_commits(
}
};
- if let Err(e) = get_branch(&repo, "main") {
+ if let Err(e) = get_branch(&repo, branch) {
return Err(e);
}