Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F85630864
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Award Token
Flag For Later
Size
744 B
Referenced Files
None
Subscribers
None
View Options
diff --git a/build/commit_hash.js b/build/commit_hash.js
index 3719f5906d..2b13afb93a 100644
--- a/build/commit_hash.js
+++ b/build/commit_hash.js
@@ -1,18 +1,20 @@
import childProcess from 'node:child_process'
export const getCommitHash = () => {
const subst = '$Format:%h$'
if (!/Format:/.exec(subst)) {
return subst
} else {
try {
return childProcess
- .execSync('PATH=/usr/bin:/bin:/usr/local/bin:/sbin:/usr/sbin git rev-parse --short HEAD')
+ .execSync(
+ 'PATH=/usr/bin:/bin:/usr/local/bin:/sbin:/usr/sbin git rev-parse --short HEAD',
+ )
.toString()
.trim()
} catch (e) {
console.error('Failed run git:', e)
return 'UNKNOWN'
}
}
}
File Metadata
Details
Attached
Mime Type
text/x-diff
Expires
Sun, Aug 9, 11:35 PM (1 d, 18 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1724820
Default Alt Text
(744 B)
Attached To
Mode
rPUFE pleroma-fe-upstream
Attached
Detach File
Event Timeline
Log In to Comment