File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed
Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change 1313* test: convert config playground to unit tests (#19568 ) ([ c0e68da] ( https://github.com/vitejs/vite/commit/c0e68da4774f3487e9ba0c4d4d2c5e76bdc890ea ) ), closes [ #19568 ] ( https://github.com/vitejs/vite/issues/19568 )
1414* test: convert resolve-config playground to unit tests (#19567 ) ([ db5fb48] ( https://github.com/vitejs/vite/commit/db5fb48f5d4c1ee411e59c1e9b70d62fdb9d53d2 ) ), closes [ #19567 ] ( https://github.com/vitejs/vite/issues/19567 )
1515* perf: flush compile cache after 10s (#19537 ) ([ 6c8a5a2] ( https://github.com/vitejs/vite/commit/6c8a5a27e645a182f5b03a4ed6aa726eab85993f ) ), closes [ #19537 ] ( https://github.com/vitejs/vite/issues/19537 )
16- * chore(css): move environment destructuring after condition check (#19492 ) ([ c9eda23] ( https://github.com/vitejs/vite/commit/c9eda23 ) ), closes [ #19492 ] ( https://github.com/vitejs/vite/issues/19492 )
16+ * chore(css): move environment destructuring after condition check (#19492 ) ([ c9eda23] ( https://github.com/vitejs/vite/commit/c9eda2348c244d591d23f131c6ddf262b256cbf0 ) ), closes [ #19492 ] ( https://github.com/vitejs/vite/issues/19492 )
1717* chore(html): remove unnecessary value check (#19491 ) ([ 797959f] ( https://github.com/vitejs/vite/commit/797959f01da583b85a0be1dc89f762fd01d138db ) ), closes [ #19491 ] ( https://github.com/vitejs/vite/issues/19491 )
1818
1919
Original file line number Diff line number Diff line change @@ -11,7 +11,9 @@ export default function extendCommitHash(path: string): void {
1111 while ( ( match = matchHashReg . exec ( content ) ) ) {
1212 const shortHash = match [ 1 ]
1313 try {
14- const longHash = execSync ( `git rev-parse ${ shortHash } ` ) . toString ( ) . trim ( )
14+ const longHash = execSync ( `git rev-parse "${ shortHash } ^{commit}"` )
15+ . toString ( )
16+ . trim ( )
1517 content = content . replace ( `${ base } ${ shortHash } ` , `${ base } ${ longHash } ` )
1618 } catch { }
1719 }
You can’t perform that action at this time.
0 commit comments