]> git.lizzy.rs Git - rust.git/commit
Auto merge of #35848 - Mark-Simulacrum:make-tidy-in-tree, r=alexcrichton
authorbors <bors@rust-lang.org>
Mon, 22 Aug 2016 12:39:53 +0000 (05:39 -0700)
committerGitHub <noreply@github.com>
Mon, 22 Aug 2016 12:39:53 +0000 (05:39 -0700)
commit57a1f684cd14d8f042b4356d8c1518ca3e02cecf
treedb0d953f8b21df0a01602569357c2c64c6152bf6
parentc44534ef5a6b95cb032c6ce28c8893cf530903b9
parentbe8df50c9f3a8e9801ede314e6ab96395c349711
Auto merge of #35848 - Mark-Simulacrum:make-tidy-in-tree, r=alexcrichton

Check that executable file is in-tree before failing tidy check

I silenced stdout and stderr for ls-files, not sure if that's appropriate (is `make tidy` intended to give debugging information)? Otherwise it prints each file it find to stdout/stderr, which currently prints nothing (only executable files are checked).

I have not done major testing regarding the behavior of ls-files when the file is ignored, but judging by the man page everything should be fine.

I've duplicated the code which makes the path git-friendly from the `Cargo.lock` checking code; I can extract that into a common helper if wanted (it's only two lines).

Fixes #35689.