Reputation: 1801
I need to create a file with latest git commit info. I've added a new Command to Bamboo build cycle. See screenshot
When I run a job, the error occurs:
fatal: ambiguous argument '>': unknown revision or path not in the working tree.
I think I need somehow to escape this command, but don't know how. Can somebody help with this issue?
Upvotes: 2
Views: 1080
Reputation: 1327014
If the redirection isn't supported, you could:
git log -n 1 > version.txt
in a script andUpvotes: 1