File tree Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
8
8
## Unreleased
9
9
10
+ ### Added
11
+ * enable builds from ` git archive ` generated source tarballs [[ @alerque ] ( https://github.com/alerque )] ([ #2187 ] ( https://github.com/extrawurst/gitui/pull/2187 ) )
12
+
10
13
## [ 0.26.0+1] - 2024-04-14
11
14
12
15
** 0.26.1**
Original file line number Diff line number Diff line change 1
1
fn get_git_hash ( ) -> String {
2
2
use std:: process:: Command ;
3
3
4
+ // Allow builds from `git archive` generated tarballs if output of `git get-tar-commit-id` is
5
+ // set in an env var.
6
+ if let Ok ( commit) = std:: env:: var ( "TAR_COMMIT_ID" ) {
7
+ return commit[ ..7 ] . to_string ( ) ;
8
+ } ;
4
9
let commit = Command :: new ( "git" )
5
10
. arg ( "rev-parse" )
6
- . arg ( "--short" )
11
+ . arg ( "--short=7 " )
7
12
. arg ( "--verify" )
8
13
. arg ( "HEAD" )
9
14
. output ( ) ;
You can’t perform that action at this time.
0 commit comments