Allow Diffusion to display the initial commit in Git repositories
Summary: See T507. Since you can't do "xxxxxxxx^" where "xxxxxxxx" is the first commit in a repository, fall back to diffing against the empty tree if we fail to diff against the parent commit. Test Plan: Looked at the first commit in libphutil on my local. Reviewers: edward, jungejason, nh, tuomaspelkonen, aran Reviewed By: nh CC: aran, edward, epriestley, nh Differential Revision: 953
This commit is contained in:
@@ -405,7 +405,7 @@ class PhabricatorRepositoryEditController
|
||||
if ($is_git) {
|
||||
$instructions =
|
||||
'Enter the URI to clone this repository from. It should look like '.
|
||||
'<tt>git@github.com:example/example.git</tt>, <tt> '.
|
||||
'<tt>git@github.com:example/example.git</tt> or '.
|
||||
'<tt>ssh://user@host.com/git/example.git</tt>';
|
||||
} else if ($is_mercurial) {
|
||||
$instructions =
|
||||
|
||||
Reference in New Issue
Block a user