|
|
@@ -1,7 +1,7 @@
|
|
|
use std::old_io::{fs, IoResult};
|
|
|
use std::old_io as io;
|
|
|
use std::ascii::AsciiExt;
|
|
|
-use std::env::current_dir;
|
|
|
+use std::os::getcwd;
|
|
|
|
|
|
use ansi_term::{ANSIString, ANSIStrings, Colour, Style};
|
|
|
use ansi_term::Style::Plain;
|
|
|
@@ -451,7 +451,7 @@ impl<'a> File<'a> {
|
|
|
|
|
|
fn git_status(&self) -> Cell {
|
|
|
let status = match self.dir {
|
|
|
- Some(d) => d.git_status(¤t_dir().unwrap_or(Path::new(".")).join(&self.path),
|
|
|
+ Some(d) => d.git_status(&getcwd().unwrap_or(Path::new(".")).join(&self.path),
|
|
|
self.is_directory()),
|
|
|
None => GREY.paint("--").to_string(),
|
|
|
};
|