Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Timothe Litt
BIND
Commits
ab571c1f
Commit
ab571c1f
authored
Sep 09, 2013
by
Evan Hunt
Browse files
[master] make sure both tags and branches work with kit.sh
parent
d8993111
Changes
1
Show whitespace changes
Inline
Side-by-side
util/kit.sh
View file @
ab571c1f
...
...
@@ -124,6 +124,13 @@ mkdir $topdir || exit 1
git archive
--format
=
tar
$remote
$tag
|
(
cd
$topdir
;
tar
xf -
)
shorthash
=
`
git ls-remote
$repo
refs/heads/
$tag
|
cut
-c1-8
`
if
[
-z
"
$shorthash
"
]
;
then
shorthash
=
`
git ls-remote
$repo
refs/tags/
$tag
|
cut
-c1-8
`
fi
if
[
-z
"
$shorthash
"
]
;
then
echo
"Unable to determine hash for
$tag
, aborting."
exit
1
fi
cd
$topdir
||
exit
1
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment