We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 41e6bbf commit db3af3bCopy full SHA for db3af3b
2 files changed
src/clone.rs
@@ -51,7 +51,7 @@ pub fn run(args: CloneArgs) -> Result<()> {
51
} else {
52
repository
53
.split('/')
54
- .last()
+ .next_back()
55
.unwrap_or(repository)
56
.trim_end_matches(".git")
57
.to_string()
src/git.rs
@@ -5,7 +5,7 @@ use std::process::Command;
5
/// Check if directory is a valid git repository.
6
pub fn is_git_repo() -> bool {
7
Command::new("git")
8
- .args(&["rev-parse", "--is-inside-work-tree"])
+ .args(["rev-parse", "--is-inside-work-tree"])
9
.output()
10
.map(|o| o.status.success())
11
.unwrap_or(false)
0 commit comments