Skip to content

Commit

Permalink
1.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Axlefublr committed Dec 20, 2023
1 parent e07ce74 commit b9b2d5a
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "ghl"
version = "0.1.0"
version = "1.0.0"
edition = "2021"
authors = ["Axlefublr"]
license = "MIT"
Expand Down
2 changes: 1 addition & 1 deletion src/args.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use crate::git::Connector;
use clap::Parser;
use std::path::PathBuf;
use crate::git::Connector;

#[derive(Parser)]
#[command(author, version, about)]
Expand Down
5 changes: 4 additions & 1 deletion src/git.rs
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,10 @@ pub fn connector(path: &Path, connector: Option<Connector>) -> Result<Connector,
if let Some(connector) = connector {
return Ok(connector);
}
match fs::symlink_metadata(path).map_err(|_| PATH_NOT_FOUND_ERROR)?.is_dir() {
match fs::symlink_metadata(path)
.map_err(|_| PATH_NOT_FOUND_ERROR)?
.is_dir()
{
true => Ok(Connector::Tree),
false => Ok(Connector::Blob),
}
Expand Down

0 comments on commit b9b2d5a

Please sign in to comment.