FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
linux/scripts/check-git at main · analogdevicesinc/linux · GitHub
Uh oh!
There was an error while loading.
Please reload this page
.
analogdevicesinc
/
linux
Public
Notifications
You must be signed in to change notification settings
Fork
970
Star
653
Code
Issues
70
Pull requests
73
Actions
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Security and quality
Insights
Expand file tree
Breadcrumbs
linux
/
scripts
/
check-git
Copy path
More file actions
More file actions
Latest commit
History
History
History
executable file
·
14 lines (11 loc) · 298 Bytes
Breadcrumbs
linux
/
scripts
/
check-git
Copy path
File metadata and controls
executable file
·
14 lines (11 loc) · 298 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
14
#!
/bin/sh
#
SPDX-License-Identifier: GPL-2.0-only
#
#
succeed if we are in a git repository
srctree=
"
$(
dirname
$0
)
/..
"
if
!
git -C
"
${srctree}
"
rev-parse --verify HEAD
>
/dev/null
2>
/dev/null
;
then
exit
1
fi
if
!
test
-z
$(
git -C
"
${srctree}
"
rev-parse --show-cdup
2>
/dev/null
)
;
then
exit
1
fi
Back
|
FazBrowse Home
|
New Git URL