aboutsummaryrefslogtreecommitdiff
path: root/kiss
diff options
context:
space:
mode:
Diffstat (limited to 'kiss')
-rwxr-xr-xkiss20
1 files changed, 9 insertions, 11 deletions
diff --git a/kiss b/kiss
index 1aed25d..a59a502 100755
--- a/kiss
+++ b/kiss
@@ -245,17 +245,15 @@ pkg_extract() {
git+*\#*)
log "Checking out ${src##*#}"
- (
- # A commit was requested, unshallow the repository.
- # This will convert it to a regular repository with
- # full history.
- git fetch --unshallow
-
- # Try to checkout the repository. If we fail here,
- # the requested commit doesn't exist.
- git -c advice.detachedHead=false checkout "${src##*#}" ||
- die "Commit hash ${src##*#} doesn't exist"
- )
+ # A commit was requested, unshallow the repository.
+ # This will convert it to a regular repository with
+ # full history.
+ git fetch --unshallow
+
+ # Try to checkout the repository. If we fail here,
+ # the requested commit doesn't exist.
+ git -c advice.detachedHead=false checkout "${src##*#}" ||
+ die "Commit hash ${src##*#} doesn't exist"
;;
# Git repository, comment or blank line.