Ticket #400 (new defect)
"moap changelog prepare" expects .git/ and ChangeLog to be in the same directory
| Reported by: | siavash@… | Owned by: | marcandre.lureau@… |
|---|---|---|---|
| Priority: | minor | Milestone: | 0.2.7 |
| Component: | moap | Version: | TRUNK |
| Keywords: | Cc: |
Description
I'm using git-svn, the repo contains: branches/ .git/ tags/ trunk/
running "moap changlog prepare" fails in trunk:
siavash@laptop ~/d/g/g/c/trunk> moap changelog prepare Updating ChangeLog from git-svn repository. Could not update ChangeLog: sh: .git/info/exclude: No such file or directory
using -C option in repos top directory fails too:
siavash@laptop ~/d/g/g/clutter-gtkmm> moap changelog -C trunk/ChangeLog prepare Updating trunk/ChangeLog from git-svn repository. Could not update trunk/ChangeLog: sh: .git/info/exclude: No such file or directory
Attachments
Change History
comment:2 Changed 4 years ago by elmarco
I don't think there is much we can do about that.
In theory, you should not have that:
.git branches tags trunk
But rather let git-svn manage your branch and tags ala git (except that tags are not really tags in SVN)..
For example, you should do git svn clone -s url (assuming your SVN layout is Standard, you can configure that anyway).
Eventually though, we could easily figure out what is the directory of .git (like any other git tool) and run the commands from there. Meanwhile, you should be able to work around it yourself when running moap with GIT_DIR=dir_of_.git
The git/gitsvn backend needs rework. I would lower the priority of this bug.

It looks like this is coming from the part doing:
status, output = commands.getstatusoutput("git svn show-ignore >> .git/info/exclude")I have no idea about the git-svn backend, so assigning to Marc-André to see if he knows why this is done.