aboutsummaryrefslogtreecommitdiff
path: root/kiss
diff options
context:
space:
mode:
authordylan.araps@gmail.com <dylan.araps@gmail.com>2020-02-12 07:27:47 +0000
committerdylan.araps@gmail.com <dylan.araps@gmail.com>2020-02-12 07:27:47 +0000
commit84caf06a859a81b2dfd350d44ea3f11edfad4645 (patch)
tree59a88dd0291d7791a08cc041a921915434208076 /kiss
parent5800210c5bc8969167cc11b696e5ac5794ac4d17 (diff)
downloadcpt-84caf06a859a81b2dfd350d44ea3f11edfad4645.tar.gz
kiss: Allow #arg to be a branch name
FossilOrigin-Name: 2f191a4d7dedc09c6dc8c4880a668e451f2a7c3d72933d3454a18cde0ed481f0
Diffstat (limited to 'kiss')
-rwxr-xr-xkiss4
1 files changed, 2 insertions, 2 deletions
diff --git a/kiss b/kiss
index b4662dd..d9ab103 100755
--- a/kiss
+++ b/kiss
@@ -231,7 +231,7 @@ pkg_extract() {
git+*\#*)
log "Checking out ${src##*#}"
- git reset --hard "${src##*#}" ||
+ git -c advice.detachedHead=false checkout "${src##*#}" ||
die "Commit hash ${src##*#} doesn't exist"
;;
@@ -1308,7 +1308,7 @@ args() {
l|list) pkg_list "$@" ;;
u|update) pkg_updates ;;
s|search) for pkg; do pkg_find "$pkg" all; done ;;
- v|version) log kiss 1.5.2 ;;
+ v|version) log kiss 1.5.3 ;;
h|help|-h|--help|'')
log 'kiss [a|b|c|i|l|r|s|u|v] [pkg] [pkg] [pkg]'