mirror of
https://github.com/systemd/systemd.git
synced 2025-08-02 04:22:27 +03:00
tools: make various scripts find the top-levle git dir automatically
This commit is contained in:
@ -1,11 +1,13 @@
|
||||
#!/bin/sh
|
||||
# SPDX-License-Identifier: LGPL-2.1+
|
||||
|
||||
TOP=`git rev-parse --show-toplevel`
|
||||
|
||||
case "$1" in
|
||||
|
||||
recdiff)
|
||||
if [ "$2" = "" ] ; then
|
||||
DIR="$PWD/.."
|
||||
DIR="$TOP"
|
||||
else
|
||||
DIR="$2"
|
||||
fi
|
||||
@ -15,7 +17,7 @@ case "$1" in
|
||||
|
||||
recpatch)
|
||||
if [ "$2" = "" ] ; then
|
||||
DIR="$PWD/.."
|
||||
DIR="$TOP"
|
||||
else
|
||||
DIR="$2"
|
||||
fi
|
||||
|
Reference in New Issue
Block a user