Skip to content
Snippets Groups Projects
Code owners
Assign users and groups as approvers for specific file changes. Learn more.
deps 560 B
#!/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 02e3cf038dcea8290e44424da473dd12be796a8a
reset golang.org/x/crypto               abc5fa7ad02123a41f02bf1391c9760f7586e608