We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c9ade6f commit f295294Copy full SHA for f295294
scripts/version.sh
@@ -15,6 +15,12 @@ set -euo pipefail
15
source "$(dirname "${BASH_SOURCE[0]}")/lib.sh"
16
cdroot
17
18
+# If in Sapling, just print the commit since we don't have tags.
19
+if [ -d ".sl" ]; then
20
+ sl log -l 1 | awk '/changeset/ { print substr($2, 0, 16) }'
21
+ exit 0
22
+fi
23
+
24
if [[ "${CODER_FORCE_VERSION:-}" != "" ]]; then
25
echo "$CODER_FORCE_VERSION"
26
exit 0
0 commit comments