Unverified Commit 92fa223e authored by Mislav Marohnić's avatar Mislav Marohnić Committed by GitHub
Browse files

Merge pull request #1404 from eladeyal-intel/shorter

shorter git command chains
parents aabb2624 1e941926
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -28,7 +28,7 @@ $ PREFIX=/usr/local ./ruby-build/install.sh
$ brew update && brew upgrade ruby-build

# As an rbenv plugin
$ cd "$(rbenv root)"/plugins/ruby-build && git pull
$ git -C "$(rbenv root)"/plugins/ruby-build pull
```

## Usage
+1 −1
Original line number Diff line number Diff line
@@ -214,7 +214,7 @@ if [ "$STATUS" == "2" ]; then
      echo "  brew update && brew upgrade ruby-build"
    elif [ -d "${here}/.git" ]; then
      printf ":\n\n"
      echo "  cd ${here} && git pull && cd -"
      echo "  git -C ${here} pull"
    else
      printf ".\n"
    fi
+1 −1
Original line number Diff line number Diff line
@@ -68,7 +68,7 @@ See all available versions with \`rbenv install --list'.

If the version you need is missing, try upgrading ruby-build:

  cd ${BATS_TEST_DIRNAME}/.. && git pull && cd -
  git -C ${BATS_TEST_DIRNAME}/.. pull
OUT

  unstub ruby-build