Modify

Ticket #400 (new defect)

Opened 4 years ago

Last modified 4 years ago

"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:1 Changed 4 years ago by thomas

  • Owner changed from thomas to marcandre.lureau@…

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.

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.

comment:3 Changed 4 years ago by thomas

  • Priority changed from major to minor
View

Add a comment

Modify Ticket

Change Properties
<Author field>
Action
as new
as The resolution will be set. Next status will be 'closed'
to The owner will be changed from marcandre.lureau@…. Next status will be 'new'
The owner will be changed from marcandre.lureau@… to anonymous. Next status will be 'assigned'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.