aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordylan.araps@gmail.com <dylan.araps@gmail.com>2020-02-19 14:13:15 +0000
committerdylan.araps@gmail.com <dylan.araps@gmail.com>2020-02-19 14:13:15 +0000
commit56a6186d072aba6d1ada877603644087c0bce216 (patch)
treea00a303466cb98dcde7a0020a7571cf220bbba14
parent431522e3e711803c87d27ef935831541b0d6d91f (diff)
downloadcpt-56a6186d072aba6d1ada877603644087c0bce216.tar.gz
kiss: remove left over subshell
FossilOrigin-Name: af96535e6ab9491467fe91f85bfecde2360e930cc4fc2062d3efa0f6e96f97dc
-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.