Page MenuHomePhabricator

Empty repositories should show a "this repository is empty" message
Closed, ResolvedPublic

Description

Apparently Diffusion flips out when you have an empty Git repository. We should fix this, and verify the SVN/HG states.

Event Timeline

epriestley added a project: Diffusion.
epriestley added a subscriber: epriestley.
epriestley lowered the priority of this task from Normal to Low.Jul 23 2012, 7:04 PM

I looked into this a little bit and it looks like we have to special-case a bunch of things since an empty repository is qualitatively different from a nonempty repository (e.g., there are no branches) and some of the error conditions we're hitting are existing tests for other misconfigurations (e.g., you ignored every branch by accident or are trying to track branches which don't exist like "msater") so we need to add code to distinguish between the failure mdoes. We should definitely fix this at some point but the reward-per-unit-of-effort tradeoff isn't the best ever.

Same deal for Mercurial, which has similar issues.

And maybe SVN too. Not sure what it does.

epriestley edited this Maniphest Task.
epriestley changed the visibility from "All Users" to "Public (No Login Required)".Nov 11 2013, 10:14 PM
epriestley renamed this task from Diffusion should work properly for empty git repositories to Diffusion should work properly for empty repositories.Dec 13 2013, 10:21 PM

T4835 has an advanced sub-case of this, where branches and commits exist but there are no files in the repository (e.g., initial commit with --allow-empty, probably also possible by adding and then deleting files).

epriestley renamed this task from Diffusion should work properly for empty repositories to Empty repositories should show a "this repository is empty" message.May 7 2014, 9:52 PM

This is confusing new installs with new admins trying to figure out phabricator.

avivey claimed this task.

Empty repositories now show proper message.