Skip to content

Commit

Permalink
Update gcm
Browse files Browse the repository at this point in the history
  • Loading branch information
ztlevi committed Nov 17, 2023
1 parent 90f0b66 commit 38ad61f
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ dotty misc/apps misc/docker misc/aws misc/cspell misc/unison misc/gpg

1. Don't forget to import your private/public GPG keys. If you're interested in GPG forwarding over
ssh, see [README](./misc/gpg/README.md).
2. On Linux, you will need to init `pass` to enable Git-Credential-Manager-Core (GCM-Core),
2. On Linux, you will need to init `pass` to enable git-credential-manager (GCM),
`pass init <your-gpg-email>`. If you select **personal access token**, go
[here](https://github.com/settings/tokens) to create a new token.

Expand Down
2 changes: 1 addition & 1 deletion config
4 changes: 2 additions & 2 deletions misc/gpg/_init
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ install() {
brew install gpg-suite
;;
linux-*)
# https://github.com/microsoft/Git-Credential-Manager-Core/blob/main/docs/linuxcredstores.md
brew install pass # Required by git-credential-manager-core
# https://github.com/git-ecosystem/git-credential-manager/blob/release/docs/credstores.md
brew install pass # Required by git-credential-manager
if [[ ! -f $HOME/.local/share/password-store/.gpg-id ]]; then
if (git config --get user.email) >/dev/null; then
pass init $(git config --get user.email)
Expand Down
10 changes: 5 additions & 5 deletions shell/git/LICENSE_INVENTORY.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# License inventory

| license | packages |
| ------- | ------------------------------------------------------------------- |
| MIT | git-credential-manager-core, git-lfs, gh, diff-so-fancy, git-extras |
| BSD | git-flow-avh |
| GPL-2.0 | git, pass |
| license | packages |
| ------- | -------------------------------------------------------------- |
| MIT | git-credential-manager, git-lfs, gh, diff-so-fancy, git-extras |
| BSD | git-flow-avh |
| GPL-2.0 | git, pass |
8 changes: 4 additions & 4 deletions shell/git/_init
Original file line number Diff line number Diff line change
Expand Up @@ -9,18 +9,18 @@ install() {
# homebrew sometimes will pop "git-lfs: command not found"
ln -Fs "$(which git-lfs)" "$(git --exec-path)/"

brew tap microsoft/git
brew install --cask git-credential-manager-core
brew untap microsoft/git
brew install --cask git-credential-manager
;;
linux-*)
local tempdir=/tmp/temp-install
mkdir -p $tempdir
(
cd $tempdir
wget --no-check-certificate \
$(get_github_latest_release_url GitCredentialManager/git-credential-manager ".*linux.*\d+\.tar\.gz") -O gcm.tar.gz
$(get_github_latest_release_url git-ecosystem/git-credential-manager ".*linux.*\d+\.tar\.gz") -O gcm.tar.gz
tar -zxvf gcm.tar.gz
sudo cp -f git-credential-manager-core /usr/local/bin/
sudo cp -f git-credential-manager /usr/local/bin/
)
rm -rf $tempdir
;;
Expand Down

0 comments on commit 38ad61f

Please sign in to comment.