Fixes some bugs
This commit is contained in:
@@ -6,7 +6,9 @@ use colored::*;
|
||||
use gclone::git::{clone, parse_url, GCLONE_PATH};
|
||||
use gclone::{first_arg, Cache, Result};
|
||||
|
||||
fn help() {}
|
||||
fn help() {
|
||||
print!(include_str!("../assets/help.txt"));
|
||||
}
|
||||
|
||||
fn main_result() -> Result<()> {
|
||||
// Parse args
|
||||
@@ -16,6 +18,12 @@ fn main_result() -> Result<()> {
|
||||
return Ok(help());
|
||||
}
|
||||
|
||||
let url = if url.ends_with(".git") {
|
||||
&url[0..url.len() - 4]
|
||||
} else {
|
||||
&url
|
||||
};
|
||||
|
||||
let (server, owner, repo) = parse_url(&url)?;
|
||||
|
||||
// Build path
|
||||
|
||||
Reference in New Issue
Block a user