Page MenuHomePhabricator

Don't let users pick "whatever.git" as a repository short name, make "." work
ClosedPublic

Authored by epriestley on Nov 21 2016, 11:46 PM.
Tags
None
Referenced Files
F15469007: D16908.id40699.diff
Fri, Apr 4, 8:19 AM
F15454612: D16908.diff
Sat, Mar 29, 7:21 PM
F15435071: D16908.id40699.diff
Tue, Mar 25, 6:43 AM
F15431727: D16908.id40698.diff
Mon, Mar 24, 2:08 PM
F15429635: D16908.id.diff
Mon, Mar 24, 3:24 AM
F15429212: D16908.diff
Mon, Mar 24, 1:11 AM
F15380520: D16908.id40698.diff
Fri, Mar 14, 3:26 AM
F15343236: D16908.id.diff
Sun, Mar 9, 10:15 PM
Subscribers
None

Details

Summary

Fixes T11902.

  • Periods now work in short names.
  • If you try to name something ".git", no dice.
Test Plan
  • Tried to name something "quack.git", was politely rejected.
  • Named something "quack.notgit", and it worked fine.
  • Cloned Mercurial and Git repositories over SSH with ".git" and non-".git" variants without hitting any issues.

Diff Detail

Repository
rP Phabricator
Branch
deambig1
Lint
Lint Passed
Unit
Tests Passed
Build Status
Buildable 14592
Build 19047: Run Core Tests
Build 19046: arc lint + arc unit

Event Timeline

epriestley retitled this revision from to Don't let users pick "whatever.git" as a repository short name, make "." work.
epriestley updated this object.
epriestley edited the test plan for this revision. (Show Details)
epriestley added a reviewer: chad.
chad edited edge metadata.
This revision is now accepted and ready to land.Nov 21 2016, 11:46 PM
src/applications/repository/storage/PhabricatorRepository.php
596–597

I couldn't figure out what this was talking about after some probing, so I think we're fine. SSH clones with Mercurial definitely work. Possibly we haven't seen the end of this.

This revision was automatically updated to reflect the committed changes.