Go to file
Dylan Araps 569554d315
kiss: Add update-resolve hook
Hooks can now resolve paths if needed and tell the package manager
about the result. ie, a hook performing git retrieval can tell the
package manager the resolved path to the repository.

The package manager will then filter duplicates /correctly/ and
hooks can be sure they'll run once per *Git repository*.

  #!/bin/sh -e
  #
  # Generic Git repository updater.

  git remote >/dev/null 2>&1 || exit 0

  case $1 in
      update-resolve)
          subm=$(git rev-parse --show-superproject-working-tree)
          git -C "${subm:-"$PWD"}" rev-parse --show-toplevel
      ;;

      pre-update)
          case $(git config --get merge.verifySignatures) in true)
              printf 'Signature verification enabled.\n'
          esac

          git pull
          git submodule update --remote --init -f
      ;;
  esac

NOTE: This may be reverted. Just merging to allow users to play
around with it. It's one possible solution to removing hook
boilerplate for updates.
2021-07-26 07:59:32 +03:00
.github github: issue template 2021-07-24 23:28:52 +03:00
contrib kiss-chroot: set LOGNAME 2021-07-19 19:50:25 +03:00
doc doc: fix 2021-07-24 22:22:13 +03:00
kiss kiss: Add update-resolve hook 2021-07-26 07:59:32 +03:00
LICENSE docs: update 2021-07-02 14:43:29 +00:00
README meta: new domain 2021-07-23 00:34:24 +03:00

|/
|\ISS LINUX                                                https://kisslinux.org
________________________________________________________________________________


Package Manager
________________________________________________________________________________

KISS' tiny package manager.

Documentation:

- https://kisslinux.org/package-manager
- https://kisslinux.org/package-system