summaryrefslogtreecommitdiffstats
path: root/src/options.rs
diff options
context:
space:
mode:
authorBen S <ogham@bsago.me>2015-04-07 02:40:15 +0100
committerBen S <ogham@bsago.me>2015-04-07 02:40:15 +0100
commitfc188935cdb15079af28c737354381a289244156 (patch)
tree56817389d7eea45fe5a543b4633df61d2adb530a /src/options.rs
parent4d2d2385c112e7e2443eb16327e18ccf88292483 (diff)
Fix panic when using --long without git support
Fixes #55.
Diffstat (limited to 'src/options.rs')
-rw-r--r--src/options.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/options.rs b/src/options.rs
index 6ca987a..9602a77 100644
--- a/src/options.rs
+++ b/src/options.rs
@@ -512,7 +512,7 @@ impl Columns {
links: matches.opt_present("links"),
blocks: matches.opt_present("blocks"),
group: matches.opt_present("group"),
- git: matches.opt_present("git"),
+ git: cfg!(feature="git") && matches.opt_present("git"),
})
}