File tree 2 files changed +3
-2
lines changed
2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ fn main() -> Result<(), Box<dyn std::error::Error>> {
10
10
}
11
11
println ! ( "cargo:rerun-if-env-changed=VERGEN_GIT_SHA" ) ;
12
12
if std:: env:: var_os ( "VERGEN_GIT_SHA" ) . is_none ( ) {
13
- vergen. git_sha ( true ) ;
13
+ vergen. git_sha ( false ) ;
14
14
}
15
15
vergen. fail_on_error ( ) . emit ( ) ?;
16
16
Ok ( ( ) )
Original file line number Diff line number Diff line change @@ -724,6 +724,7 @@ impl App {
724
724
let cosmic_theme:: Spacing { space_xxs, .. } = self . core ( ) . system_theme ( ) . cosmic ( ) . spacing ;
725
725
let repository = "https://github.com/pop-os/cosmic-edit" ;
726
726
let hash = env ! ( "VERGEN_GIT_SHA" ) ;
727
+ let short_hash: String = hash. chars ( ) . take ( 7 ) . collect ( ) ;
727
728
let date = env ! ( "VERGEN_GIT_COMMIT_DATE" ) ;
728
729
widget:: column:: with_children ( vec ! [
729
730
widget:: svg( widget:: svg:: Handle :: from_memory(
@@ -739,7 +740,7 @@ impl App {
739
740
. into( ) ,
740
741
widget:: button:: link( fl!(
741
742
"git-description" ,
742
- hash = hash ,
743
+ hash = short_hash . as_str ( ) ,
743
744
date = date
744
745
) )
745
746
. on_press( Message :: LaunchUrl ( format!( "{}/commits/{}" , repository, hash) ) )
You can’t perform that action at this time.
0 commit comments