Skip to content

Commit

Permalink
fix: Remove trailing .git and allow local path
Browse files Browse the repository at this point in the history
  • Loading branch information
shiipou committed Sep 6, 2024
1 parent e4597da commit 0917942
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 7 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,12 @@ jobs:
name: clone-${{ matrix.os }}-${{ matrix.arch }}
path: ./clone-${{ matrix.os }}-${{ matrix.arch }}${{ matrix.file_extension }}

- name: Publish cargo
if: ${{ needs.get-version.outputs.will-release }}
shell: bash
run: cargo publish -p clone-project-manager --allow-dirty --token "${{ secrets.CARGO_TOKEN }}"


release:
needs: [ get-version, build ]
if: ${{ needs.get-version.outputs.will-release }}
Expand Down
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 = "clone-project-manager"
version = "2.0.0"
version = "2.0.1"
edition = "2021"
include = [
"**/*.rs",
Expand Down
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ use std::path::{Path, PathBuf};
pub mod projectmanager;
use crate::projectmanager::{nvim, vscode};

const DEFAULT_REGEX: &str = r"^(?:https://|git@)([^/:]+)[/:]([^/]+)/([^\.]+(?:\.git)?)$";
const DEFAULT_REGEX: &str = r"(?m)^(?:https?://|git@)?([^/:]+)[/:]([^/]+)/([^\.]+)(?:\.git)?$";

#[derive(Serialize, Deserialize, Debug)]
#[serde(default)]
Expand Down
8 changes: 4 additions & 4 deletions src/projectmanager/nvim/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ use serde::{Deserialize, Serialize};
#[derive(Serialize, Deserialize, Debug, Clone)]
#[serde(default)]
pub struct Entry {
command_exit: String,
command_start: String,
commandexit: Option<String>,
commandstart: Option<String>,
path: PathBuf,
name: String,
current: u8,
Expand All @@ -19,8 +19,8 @@ impl Default for Entry {
name: "".to_string(),
path: PathBuf::from(""),
current: 0,
command_start: "NvimTreeToggle".to_string(),
command_exit: "".to_string(),
commandstart: Some("NvimTreeToggle".to_string()),
commandexit: Some("".to_string()),
}
}
}
Expand Down

0 comments on commit 0917942

Please sign in to comment.