[Buildbot-commits] [Buildbot] #2560: Missing argument for git clean

Buildbot trac trac at buildbot.net
Tue Sep 3 08:49:02 UTC 2013

#2560: Missing argument for git clean
Reporter:  Cici       |      Owner:
    Type:  undecided  |     Status:  new
Priority:  major      |  Milestone:  undecided
 Version:  0.8.8      |   Keywords:  git
 The 0.8.8 documentation states under GIT/method/fresh:
   This remove all other files except those tracked by Git. First it does
 git clean -d -f -x then fetch/checkout to a specified revision(if any).

 However, git clean -d -f -x does not remove all untracked subdirectories
 (e.g. old git submodules are not removed) as the git clean manpage states:
   -d Remove untracked directories in addition to untracked files. If an
 untracked directory is managed by a different git repository, it is not
 removed by default. '''Use -f option twice if you really want to remove
 such a directory.'''

 So basically you have to use git clean -d -f -f -x.

 The same issue occurs for GIT/method/clean.

Ticket URL: <http://trac.buildbot.net/ticket/2560>
Buildbot <http://buildbot.net/>
Buildbot: build/test automation

More information about the Commits mailing list