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

sh Error On Running #11

Open
conatus opened this issue Dec 12, 2012 · 1 comment
Open

sh Error On Running #11

conatus opened this issue Dec 12, 2012 · 1 comment

Comments

@conatus
Copy link

conatus commented Dec 12, 2012

› rotten --prod develop 
Checking that branches are in production branch develop
.
 Error: Command failed: /bin/sh: origin/master: No such file or directory

    at onBranch (/usr/local/share/npm/lib/node_modules/rotten/rotten.js:65:36)
    at ChildProcess.exithandler (child_process.js:544:7)
    at ChildProcess.EventEmitter.emit (events.js:99:17)
    at maybeClose (child_process.js:638:16)
    at Socket.ChildProcess.spawn.stdin (child_process.js:815:11)
    at Socket.EventEmitter.emit (events.js:96:17)
    at Socket._destroy.destroyed (net.js:357:10)
    at process.startup.processNextTick.process._tickCallback (node.js:244:9)
............
  origin/refactor/ui-fixes all in prod, please delete remote branch
  origin/refactor/tests-fix all in prod, please delete remote branch
  origin/refactor/rename-to-pp all in prod, please delete remote branch
  origin/refactor/remove-profiler all in prod, please delete remote branch

etc etc all okay.

Running Rotten against http://github.com/unikent/programmes-plant

Might be a local problem. Seems to otherwise work.

Cheers!

@DTrejo
Copy link
Owner

DTrejo commented Feb 22, 2013

Hey, I was able to reproduce, sadly.

Looking into it.

So: it is trying to run

git log origin/HEAD -> origin/master --not --remotes="*/develop" --format="%H | %ae | %ce | %ar | %cr | %ct"

but of course it does not work since it's trying to compare HEAD and master.

The fix is to ignore HEAD, I think?

OH, it seems like your repo has the branch origin/HEAD, which is not so normal?

Your branch list:

  origin/HEAD -> origin/master
  origin/bug/correct-caching-on-saving
  origin/bug/headers-incorrect
  ...

Not sure what to do about this: maybe just ignore branchnames which contain "->" or spaces?

Thoughts?
D

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants