Svn commit from bash script without opening editor
I am trying to write a bash script that should commit to an svn repository. Everything works fine until the moment I try to commit. The commit command opens the editor and the script ends up with an error in which the commit message remained atsvn-commit.tmp
I try a couple of things, but none will work
commit_msg="$1"
svn commit -m "$commit_msg"
and
commit_msg="$1"
svn commit -m '$commit_msg'
and
commit_msg=$1
svn commit -m '$commit_msg'
and all with operators -q
and --non-interactive
. Even svn commit -m "woohoo"
opens the editor and the script ends up with an error.
Any ideas as to why it is not possible to commit to a bash script without opening an editor?
source to share
After I tried it svn ci
instead svn commit
, everything was fine. My first thought was svn version bug. After asking "Great Dump" (aka Google) I found the solution :: My .bash_profile had a snippt of code that made the svn commit
editor always open and svn ci
worked as expected.
I don't know exactly where the code snippet came from, but Windows users have to struggle with mysterious behavior.
Thanks everyone for your help.
source to share