##// END OF EJS Templates
convert: pass absolute paths to git (SEC)...
convert: pass absolute paths to git (SEC) Fixes CVE-2016-3105 (1/1). Previously, it was possible for the repository path passed to git-ls-remote to be misinterpreted as a URL. Always passing an absolute path to git is a simple way to avoid this.

File last commit:

r28879:8c1759a2 default
r29051:a56296f5 3.8.1 stable
Show More
test-check-shbang.t
13 lines | 316 B | text/troff | Tads3Lexer
/ tests / test-check-shbang.t
timeless
tests: add new test for #! shebang lines...
r28879 #require test-repo
$ cd "`dirname "$TESTDIR"`"
look for python scripts that do not use /usr/bin/env
$ hg files 'set:grep(r"^#!.*?python") and not grep(r"^#!/usr/bin/env python")'
[1]
look for shell scripts that do not use /bin/sh
$ hg files 'set:grep(r"^#!.*/bin/sh") and not grep(r"^#!/bin/sh")'
[1]