gitatlassian-crucible

Smart commit in GIT not working


I have setup Crucible for my GIT repository hosted on Bit Bucket server. I am making a smart commit as shown below to create a review on Crucible

git commit -m "Modified struts core version in pom.xml" +review TP

TP is the project code. I am getting the below error :

error: pathspec '+review' did not match any file(s) known to git
error: pathspec 'TP' did not match any file(s) know to git

Can you help me understand what is causing this error & fix this.


Solution

  • Based on the documentation, the review should part of the comment.

    git commit -m "Modified struts core version in pom.xml +review TP"
    

    The way you're currently doing it, you're asking the git binary to interpret the +review command line option, which it does not know how to do.