kiss: Allow #arg to be a branch name

This commit is contained in:
Dylan Araps 2020-02-12 09:27:48 +02:00
parent b1fe5c876c
commit 5bfc5cb0ae
No known key found for this signature in database
GPG Key ID: 46D62DD9F1DE636E
1 changed files with 2 additions and 2 deletions

4
kiss
View File

@ -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]'