Opened 6 years ago

Closed 6 years ago

#2560 closed undecided (fixed)

Missing argument for git clean

Reported by: Cici Owned by:
Priority: major Milestone: undecided
Version: 0.8.8 Keywords: git
Cc:

Description

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.

Change History (3)

comment:1 follow-up: Changed 6 years ago by dustin

Thanks! Do you want to cook up a patch and adjust the tests?

comment:2 in reply to: ↑ 1 Changed 6 years ago by Cici

Replying to dustin:

Thanks! Do you want to cook up a patch and adjust the tests?

No, I just wanted to report this issue :-)

comment:3 Changed 6 years ago by dustin

  • Resolution set to fixed
  • Status changed from new to closed
Note: See TracTickets for help on using tickets.