upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/src/git_remote_helper.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/git_remote_helper.rs')
-rw-r--r--src/git_remote_helper.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/git_remote_helper.rs b/src/git_remote_helper.rs
index 58c3bf8..4c6b9fc 100644
--- a/src/git_remote_helper.rs
+++ b/src/git_remote_helper.rs
@@ -54,7 +54,9 @@ async fn main() -> Result<()> {
54 bail!("invalid arguments - no url"); 54 bail!("invalid arguments - no url");
55 }; 55 };
56 if env::args().nth(1).as_deref() == Some("--version") { 56 if env::args().nth(1).as_deref() == Some("--version") {
57 println!("v0.0.1"); 57 const VERSION: &str = env!("CARGO_PKG_VERSION");
58 println!("v{VERSION}");
59 return Ok(());
58 } 60 }
59 61
60 let git_repo = Repo::from_path(&PathBuf::from( 62 let git_repo = Repo::from_path(&PathBuf::from(