Skip to content

Instantly share code, notes, and snippets.

@xaviershay
Last active July 25, 2020 22:27
Show Gist options
  • Save xaviershay/6207550 to your computer and use it in GitHub Desktop.
Save xaviershay/6207550 to your computer and use it in GitHub Desktop.
Sample repro script for bundler issues
#!/bin/bash
set -ex
mkdir -p /tmp/repro-1489
cd /tmp/repro-1489
bundle env
# Bundler 1.3.5
# Ruby 2.0.0 (2013-06-27 patchlevel 247) [x86_64-darwin12.4.0]
# Rubygems 2.0.3
# GEM_HOME
# Bundler settings
# disable_local_branch_check
# Set for the current user (/Users/xavier/.bundle/config): "true"
export GIT_DIR=bla
export GIT_WORK_TREE=bla
cat > Gemfile <<EOF
source "http://rubygems.org"
gem '', git: 'git://github.com/square/cane.git'
EOF
# Expected behaviour: should work
# Observed behaviour: git errors, fails
bundle install
@tispratik
Copy link

Is there any workaround to fix this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment