summaryrefslogtreecommitdiffstats
path: root/src/deps
blob: 17e50f25211b71eadde35baa0aeddd466cbc91d6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/usr/bin/env bash

if [ -z "$GOPATH" ]; then
  echo '$GOPATH not defined'
  exit 1
fi

reset() (
  cd "$GOPATH/src/$1"
  export GIT_DIR="$(pwd)/.git"
  [ "$(git rev-parse HEAD)" = "$2" ] ||
    (git fetch && git reset --hard "$2")
)

reset github.com/junegunn/go-isatty     66b8e73f3f5cda9f96b69efd03dd3d7fc4a5cdb8
reset github.com/junegunn/go-runewidth  14207d285c6c197daabb5c9793d63e7af9ab2d50
reset github.com/junegunn/go-shellwords 33bd8f1ebe16d6e5eb688cc885749a63059e9167
reset golang.org/x/crypto               abc5fa7ad02123a41f02bf1391c9760f7586e608