Skip to content

Commit 18088b6

Browse files
committed
Fixed broken add method.
1 parent 9a74c1a commit 18088b6

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

CI_Git.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ public function run($command) {
250250
*/
251251
public function add($files = "*") {
252252
if (is_array($files)) $files = '"'.implode('" "', $files).'"';
253-
return $this->run("add $file -v");
253+
return $this->run("add $files -v");
254254
}
255255

256256
/**

Git.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ public function run($command) {
243243
*/
244244
public function add($files = "*") {
245245
if (is_array($files)) $files = '"'.implode('" "', $files).'"';
246-
return $this->run("add $file -v");
246+
return $this->run("add $files -v");
247247
}
248248

249249
/**

0 commit comments

Comments
 (0)