kiss: remove left over subshell

This commit is contained in:
Dylan Araps 2020-02-19 16:13:15 +02:00
parent 5cfbe0277d
commit 1787cbe5b0
No known key found for this signature in database
GPG Key ID: 46D62DD9F1DE636E
1 changed files with 8 additions and 10 deletions

18
kiss
View File

@ -245,17 +245,15 @@ pkg_extract() {
git+*\#*) git+*\#*)
log "Checking out ${src##*#}" log "Checking out ${src##*#}"
( # A commit was requested, unshallow the repository.
# A commit was requested, unshallow the repository. # This will convert it to a regular repository with
# This will convert it to a regular repository with # full history.
# full history. git fetch --unshallow
git fetch --unshallow
# Try to checkout the repository. If we fail here, # Try to checkout the repository. If we fail here,
# the requested commit doesn't exist. # the requested commit doesn't exist.
git -c advice.detachedHead=false checkout "${src##*#}" || git -c advice.detachedHead=false checkout "${src##*#}" ||
die "Commit hash ${src##*#} doesn't exist" die "Commit hash ${src##*#} doesn't exist"
)
;; ;;
# Git repository, comment or blank line. # Git repository, comment or blank line.