summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuel Giddins <segiddins@segiddins.me>2016-09-13 16:54:24 +0200
committerSamuel Giddins <segiddins@segiddins.me>2016-09-13 16:54:24 +0200
commit6e5ebb6bc1715c23afa9351fdf72d8e4c1aeb0c4 (patch)
tree7db4e1e14979c1e9449bb17789a848ac27354219
parentd453033b19c27640f95cc085d52398342e15472b (diff)
downloadbundler-seg-fix-eval-gemfile-path-sources.tar.gz
[Path] Fix serializing absolute paths that are inside the rootseg-fix-eval-gemfile-path-sources
-rw-r--r--lib/bundler/source/path.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/bundler/source/path.rb b/lib/bundler/source/path.rb
index 4250e55905..87a490446c 100644
--- a/lib/bundler/source/path.rb
+++ b/lib/bundler/source/path.rb
@@ -130,7 +130,7 @@ module Bundler
end
def lockfile_path
- return path if path.absolute?
+ return relative_path if path.absolute?
expand(path).relative_path_from(Bundler.root)
end