# Setting SVN properties with git-svn, and removing empty directories

3 messages from 2008-02-23 to 2008-02-23. Participants: Adam Mercer, Björn Steinbrink.
Thread: https://gitlist.dev/t/12271

## Adam Mercer, 2008-02-23 17:38

Subject: Setting SVN properties with git-svn, and removing empty directories
Message-ID: <799406d60802230938s559168f8lc9b1f640f2c07fee@mail.gmail.com>
URL: https://gitlist.dev/e/799406d60802230938s559168f8lc9b1f640f2c07fee%40mail.gmail.com

```
Hi

I want to start using git to track the upstream svn repository of a
project I work on but am running into a couple of problems that I need
to resolve before I can do this.

1) Is there a way that I can set, or modify, svn properties of files,
for example svn:keywords or svn:eol-style using git-svn?

2) Whenever I delete a directory using git-svn and merge my changes to
the upstream svn repository using "git svn dcommit" the directories in
question are removed from the git repository but only the contents of
these directories are removed from the svn repository, the directories
themselves remain. Is there a way to ensure that these directories are
removed from the svn repository?

Cheers

Adam

```

## Björn Steinbrink, 2008-02-23 18:18

Subject: Re: Setting SVN properties with git-svn, and removing empty directories
Message-ID: <20080223181840.GA30325@atjola.homenet>
URL: https://gitlist.dev/e/20080223181840.GA30325%40atjola.homenet
In-Reply-To: <799406d60802230938s559168f8lc9b1f640f2c07fee@mail.gmail.com>

```
On 2008.02.23 12:38:03 -0500, Adam Mercer wrote:
> 2) Whenever I delete a directory using git-svn and merge my changes to
> the upstream svn repository using "git svn dcommit" the directories in
> question are removed from the git repository but only the contents of
> these directories are removed from the svn repository, the directories
> themselves remain. Is there a way to ensure that these directories are
> removed from the svn repository?

Acccording to the man page, you can pass --rmdir to dcommit or set
svn.rmdir in the configuration to have git-svn delete empty directories
in the SVN repo.

Björn

```

## Adam Mercer, 2008-02-23 18:23

Subject: Re: Setting SVN properties with git-svn, and removing empty directories
Message-ID: <799406d60802231023p709cb53ay1a2ecf6b8865b943@mail.gmail.com>
URL: https://gitlist.dev/e/799406d60802231023p709cb53ay1a2ecf6b8865b943%40mail.gmail.com
In-Reply-To: <20080223181840.GA30325@atjola.homenet>

```
On Sat, Feb 23, 2008 at 1:18 PM, Björn Steinbrink <B.Steinbrink@gmx.de> wrote:

>  Acccording to the man page, you can pass --rmdir to dcommit or set
>  svn.rmdir in the configuration to have git-svn delete empty directories
>  in the SVN repo.

Fantastic, thanks I didn't see that option!

Cheers

Adam

```
