diff options
Diffstat (limited to 'usr/src/tools/scripts/webrev.sh')
-rw-r--r-- | usr/src/tools/scripts/webrev.sh | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/usr/src/tools/scripts/webrev.sh b/usr/src/tools/scripts/webrev.sh index 25acbf5d4c..a8a91fdc29 100644 --- a/usr/src/tools/scripts/webrev.sh +++ b/usr/src/tools/scripts/webrev.sh @@ -53,6 +53,7 @@ FRAMEHTML='<?xml version="1.0"?> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">\n' STDHEAD='<meta http-equiv="cache-control" content="no-cache"></meta> +<meta http-equiv="Content-Type" content="text/xhtml;charset=utf-8"></meta> <meta http-equiv="Pragma" content="no-cache"></meta> <meta http-equiv="Expires" content="-1"></meta> <!-- @@ -2782,7 +2783,12 @@ done # # Output directory. # -WDIR=${WDIR:-$CWS/webrev} +if [[ $SCM_MODE == "git" ]]; then + ws_top_dir=$(dirname $CWS) + WDIR=${WDIR:-$ws_top_dir/webrev} +else + WDIR=${WDIR:-$CWS/webrev} +fi # # Name of the webrev, derived from the workspace name or output directory; @@ -3409,6 +3415,7 @@ do fi if [[ $SCM_MODE == "mercurial" || + $SCM_MODE == "git" || $SCM_MODE == "unknown" ]]; then # Include warnings for important file mode situations: |