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 + # 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" - ) + # 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.