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

Error logged on repositories without "master" branch #238

Open
fjakop opened this issue May 17, 2016 · 0 comments
Open

Error logged on repositories without "master" branch #238

fjakop opened this issue May 17, 2016 · 0 comments

Comments

@fjakop
Copy link

fjakop commented May 17, 2016

Some repositories just do not contain a "master" branch, e.g. https://github.com/RobinHerbots/jquery.inputmask.
When a repository of this kind is cached, every time a refresh happens, the log ist cluttered wit the following entries

Mai 17 13:16:22 bowerserver private-bower[16225]: [bower]  17/5/16 13:16:22   Error during "git reset --hard origin/master" in "/mnt/bowerserver/jquery.inputmask".
Mai 17 13:16:22 bowerserver private-bower[16225]: Output:
Mai 17 13:16:22 bowerserver private-bower[16225]: stdout:
Mai 17 13:16:22 bowerserver private-bower[16225]: stderr: fatal: ambiguous argument 'origin/master': unknown revision or path not in the working tree.
Mai 17 13:16:22 bowerserver private-bower[16225]: Use '--' to separate paths from revisions, like this:
Mai 17 13:16:22 bowerserver private-bower[16225]: 'git <command> [<revision>...] -- [<file>...]'
Mai 17 13:16:22 bowerserver private-bower[16225]: [bower]  17/5/16 13:16:22   Command failed: /bin/sh -c git reset --hard origin/master
Mai 17 13:16:22 bowerserver private-bower[16225]: fatal: ambiguous argument 'origin/master': unknown revision or path not in the working tree.
Mai 17 13:16:22 bowerserver private-bower[16225]: Use '--' to separate paths from revisions, like this:
Mai 17 13:16:22 bowerserver private-bower[16225]: 'git <command> [<revision>...] -- [<file>...]'
Mai 17 13:16:22 bowerserver private-bower[16225]:
Mai 17 13:16:22 bowerserver private-bower[16225]: undefined
Mai 17 13:16:22 bowerserver private-bower[16225]: Unhandled rejection Error: Command failed: /bin/sh -c git reset --hard origin/master
Mai 17 13:16:22 bowerserver private-bower[16225]: fatal: ambiguous argument 'origin/master': unknown revision or path not in the working tree.
Mai 17 13:16:22 bowerserver private-bower[16225]: Use '--' to separate paths from revisions, like this:
Mai 17 13:16:22 bowerserver private-bower[16225]: 'git <command> [<revision>...] -- [<file>...]'
Mai 17 13:16:22 bowerserver private-bower[16225]: at ChildProcess.exithandler (child_process.js:213:12)
Mai 17 13:16:22 bowerserver private-bower[16225]: at emitTwo (events.js:87:13)
Mai 17 13:16:22 bowerserver private-bower[16225]: at ChildProcess.emit (events.js:172:7)
Mai 17 13:16:22 bowerserver private-bower[16225]: at maybeClose (internal/child_process.js:821:16)
Mai 17 13:16:22 bowerserver private-bower[16225]: at Process.ChildProcess._handle.onexit (internal/child_process.js:211:5)

I would expect the log staying clean, even if there's no "master" branch which is not common but perfectly legal.

I'm using version 1.1.7.

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

1 participant