Take the 2-minute tour ×
Database Administrators Stack Exchange is a question and answer site for database professionals who wish to improve their database skills and learn from others in the community. It's 100% free, no registration required.

Below is an excerpt for the git.xml file in redgates source control

<element>
<key type="string">Commit</key>
<value version="1" type="GenericHookCommand">
<CommandLine>git commit -F "($MessageFile)" -o "($ScriptsFolder)\"</CommandLine>
<Verify>exitCode == 0</Verify>
</value>
</element>

i wish to modify it to include the push so when you do a commit in management studio it will also the push to git.

i have tried adding another command like

<CommandLine>git commit -F "($MessageFile)" -o "($ScriptsFolder)\"</CommandLine>
<commandline>git push</commandline> 

and also tried

<CommandLine>git commit -F "($MessageFile)" -o "($ScriptsFolder)\" && git push</CommandLine>

but neither work, any idea on how to get the commit and push working

share|improve this question
    
I have no idea about this product, but the \" (escaped quote) at the end of the original command looks really strange. Also, please don't cross-post (Q on SO). You should post your question on only one site. If there's a better fit on the network, your question will be migrated. –  Mat Oct 31 '12 at 11:58
    
Thanks Mat, the \" is OK(i believe) <CommandLine>git commit -F "($MessageFile)" -o "($ScriptsFolder)\"</CommandLine> When the above is just used all works fine, but it only commits to my working directory apologies on the multiple posts(newb) –  Podgeypoos Oct 31 '12 at 13:26
    
What I'm saying is that it doesn't look normal and it would be an error if passed to a (unix) shell. Might work as you have it when it's the last thing on the line, might interfere if you try to do additional stuff after it. (But as I said, I have no clue about what the thing you're using is.) –  Mat Oct 31 '12 at 13:31
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.