mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-11-27 10:42:38 +01:00
chore(deps): bump git2 from 0.20.4 to 0.21.0 (#703)
Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Gregory Schier <gschier1990@gmail.com>
This commit is contained in:
1 parent
a0d71eb486
commit
b03c41b767
8 files changed
+31
-50
No files matched your search
@@ -40,10 +40,11 @@ pub async fn git_pull(dir: &Path) -> Result<PullResult> {
|
||||
let repo = open_repo(dir)?;
|
||||
let branch_name = get_current_branch_name(&repo)?;
|
||||
let remote = get_default_remote_in_repo(&repo)?;
|
||||
let remote_name =
|
||||
remote.name().ok_or(GenericError("Failed to get remote name".to_string()))?.to_string();
|
||||
let remote_url =
|
||||
remote.url().ok_or(GenericError("Failed to get remote url".to_string()))?.to_string();
|
||||
let remote_name = remote
|
||||
.name()?
|
||||
.ok_or(GenericError("Failed to get remote name".to_string()))?
|
||||
.to_string();
|
||||
let remote_url = remote.url()?.to_string();
|
||||
(branch_name, remote_name, remote_url)
|
||||
};
|
||||
|
||||
|
||||
Reference in new issue
Block a user