]> git.pld-linux.org Git - packages/rpm-build-tools.git/commit - builder.sh
Fix for initialized git repo without any config
authorKacper Kornet <draenog@pld-linux.org>
Wed, 8 Aug 2012 17:34:58 +0000 (18:34 +0100)
committerKacper Kornet <draenog@pld-linux.org>
Wed, 8 Aug 2012 17:34:58 +0000 (18:34 +0100)
commitacd0d41d0d2244293a5c1bbd7f9624d3dc998581
tree35c91f928fdb550b285132c55e6f30af66ade3f5
parent2c6c3c720c364cda0827da42166c2b5eca705147
Fix for initialized git repo without any config

Previous version failed in the repo initialized by git init but before
the first commit was committed to it. The reason was that
git symbolic-ref HEAD returns refs/heads/master, however
git checkout-master failed. The solution is to check if HEAD points to a
real commit with git-rev-parse.
builder.sh
This page took 0.033788 seconds and 4 git commands to generate.