Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

D9387: Fix #566: 'PHABRICATOR_USER should be defined' during land to hosted git repo #634

Closed
wants to merge 2 commits into from

Conversation

darabi
Copy link

@darabi darabi commented Jun 5, 2014

I had the same problem as in #566. Also created https://secure.phabricator.com/D9387.

I am aware that this is probably not the correct way of fixing this, but this hack solves my problem.

This reverts commit e8e62f8.

Conflicts:
	src/applications/differential/landing/DifferentialLandingToHostedGit.php

Change-Id: I6a37d5d508c5865cc3d724f696f6c5982274229c
The error appears for me on a git repo hosted over http,
while another user experiences the same problem with a
ssh-served repo:

https://github.com/phacility/phabricator/issues/566

The root cause is the following in phabricator/bin/commit-hook:

  $username = getenv(DiffusionCommitHookEngine::ENV_USER);
  if (!strlen($username)) {
    throw new Exception(
      pht('usage: %s should be defined!', DiffusionCommitHookEngine::ENV_USER));
  }
@darabi darabi changed the title Fix #566: 'PHABRICATOR_USER should be defined' during land to hosted git repo D9387: Fix #566: 'PHABRICATOR_USER should be defined' during land to hosted git repo Jun 5, 2014
@epriestley
Copy link
Member

Yeah, this isn't the "right" way. I'm not going to pull this into the upstream since I wait to wait until we can build this feature more robustly (this is one of many serious problems you may run into while trying to use it) but it won't break anything if you want to use it locally for now.

@epriestley epriestley closed this Jun 5, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants