Skip to content
This repository has been archived by the owner on Apr 14, 2021. It is now read-only.

Don't call File.realpath in a loop, single call does what we want #6636

Merged
merged 1 commit into from
Jul 29, 2018

Conversation

ojab
Copy link
Contributor

@ojab ojab commented Jul 23, 2018

What was the end-user problem that led to this PR?

We're calling File.realpath in a loop

What was your diagnosis of the problem?

Single call already resolves symlinks recursively

What is your fix for the problem, implemented in this PR?

Drop call in a loop

@segiddins
Copy link
Member

Thanks! @bundlerbot r+

@indirect
Copy link
Member

@bundlerbot r+

@bundlerbot
Copy link
Collaborator

📌 Commit 10b98e7 has been approved by indirect

@bundlerbot
Copy link
Collaborator

⌛ Testing commit 10b98e7 with merge 42c4609...

bundlerbot added a commit that referenced this pull request Jul 29, 2018
Don't call File.realpath in a loop, single call does what we want

### What was the end-user problem that led to this PR?

We're calling `File.realpath` in a loop

### What was your diagnosis of the problem?

Single call already resolves symlinks recursively

### What is your fix for the problem, implemented in this PR?

Drop call in a loop
@bundlerbot
Copy link
Collaborator

☀️ Test successful - status-travis
Approved by: indirect
Pushing 42c4609 to master...

@bundlerbot bundlerbot merged commit 10b98e7 into rubygems:master Jul 29, 2018
@colby-swandale colby-swandale added this to the 1.16.4 milestone Aug 16, 2018
colby-swandale pushed a commit that referenced this pull request Aug 16, 2018
Don't call File.realpath in a loop, single call does what we want

### What was the end-user problem that led to this PR?

We're calling `File.realpath` in a loop

### What was your diagnosis of the problem?

Single call already resolves symlinks recursively

### What is your fix for the problem, implemented in this PR?

Drop call in a loop

(cherry picked from commit 42c4609)
colby-swandale added a commit that referenced this pull request Aug 22, 2018
* 1-16-stable:
  Version 1.16.4 with changelog
  Auto merge of #6668 - eregon:fix-encoding-spec-from-6661, r=deivid-rodriguez
  Add encoding magic comment to gemfile spec
  Auto merge of #6662 - bundler:indirect/update-authors, r=colby-swandale
  Auto merge of #6650 - greysteil:dont-mutate-original-trees, r=segiddins
  Auto merge of #6661 - eregon:consistent-encoding-for-reading-files, r=deivid-rodriguez
  Auto merge of #6652 - bundler:seg-molinillo-0.6.6, r=segiddins
  Auto merge of #6645 - bundler:colby/require-etc, r=colby-swandale
  Auto merge of #6636 - ojab:1-16-stable, r=indirect
  Auto merge of #6624 - bundler:no-document, r=colby-swandale
  Auto merge of #6621 - ralphbolo:patch-1, r=segiddins
  Auto merge of #6613 - kemitchell:mention-show-sorts-in-doc, r=colby-swandale
  Auto merge of #6570 - akihiro17:prerelease-dependency, r=segiddins
  Auto merge of #6568 - greysteil:conservative-groups, r=segiddins
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants