diff options
author | Ben S <ogham@bsago.me> | 2015-04-07 02:40:15 +0100 |
---|---|---|
committer | Ben S <ogham@bsago.me> | 2015-04-07 02:40:15 +0100 |
commit | fc188935cdb15079af28c737354381a289244156 (patch) | |
tree | 56817389d7eea45fe5a543b4633df61d2adb530a /src/options.rs | |
parent | 4d2d2385c112e7e2443eb16327e18ccf88292483 (diff) |
Fix panic when using --long without git support
Fixes #55.
Diffstat (limited to 'src/options.rs')
-rw-r--r-- | src/options.rs | 2 |
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"), }) } |