Skip to content

Commit c61b1dd

Browse files
committed
Add force flag to "git clean" command
1 parent 4ccc38d commit c61b1dd

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Git.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -294,6 +294,7 @@ public function run($command) {
294294
* Accept a convert to HTML bool
295295
*
296296
* @access public
297+
* @param bool return string with <br />
297298
* @return string
298299
*/
299300
public function status($html = false) {
@@ -385,7 +386,7 @@ public function clone_remote($source) {
385386
* @return string
386387
*/
387388
public function clean($dirs = false) {
388-
return $this->run("clean".(($dirs) ? " -d" : ""));
389+
return $this->run("clean -f".(($dirs) ? " -d" : ""));
389390
}
390391

391392
/**

0 commit comments

Comments
 (0)