From 967ef0d4f6c84b5c204247a8a960656d6264ef49 Mon Sep 17 00:00:00 2001 From: Kazuhiro NISHIYAMA Date: Wed, 4 Sep 2019 12:36:45 +0900 Subject: [PATCH] Use `git pull` instead of `git fetch` if master branch --- tool/fetch-bundled_gems.rb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tool/fetch-bundled_gems.rb b/tool/fetch-bundled_gems.rb index ae3068d35c..ba16d726fd 100755 --- a/tool/fetch-bundled_gems.rb +++ b/tool/fetch-bundled_gems.rb @@ -19,7 +19,11 @@ end if File.directory?(n) puts "updating #{n} ..." - system(*%W"git fetch", chdir: n) or abort + if v == "master" + system(*%W"git pull", chdir: n) or abort + else + system(*%W"git fetch", chdir: n) or abort + end else puts "retrieving #{n} ..." system(*%W"git clone #{u} #{n}") or abort