FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
sourcegraph/dev/deployed-commit.sh at main · e7dal/sourcegraph · GitHub
e7dal
/
sourcegraph
Public
forked from
sourcegraph/sourcegraph-public-snapshot
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
sourcegraph
/
dev
/
deployed-commit.sh
Copy path
More file actions
More file actions
Latest commit
History
History
History
executable file
·
13 lines (11 loc) · 435 Bytes
Breadcrumbs
sourcegraph
/
dev
/
deployed-commit.sh
Copy path
File metadata and controls
executable file
·
13 lines (11 loc) · 435 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
#!
/bin/bash
#
This script determines the commit of sourcegraph/sourcegraph that is currently
#
running on sourcegraph.com. The returned version has one of the following
#
formats:
#
#
- v{semver}
#
- {buildkite build num}_{date}_{abbreviated commit}
#
#
In either case, the following cut will give us something parseable by rev-parse.
set
-o pipefail
git rev-parse
"
$(
curl -sf https://sourcegraph.com/__version
|
cut -d
'
_
'
-f3
)
"
Back
|
FazBrowse Home
|
New Git URL