Print this page
7436 webrev doesn't work if illumos-gate is a submodule
Reviewed by: Toomas Soome <tsoome@me.com>
*** 25,34 ****
--- 25,35 ----
# Copyright 2008, 2010, Richard Lowe
# Copyright 2012 Marcel Telka <marcel@telka.sk>
# Copyright 2014 Bart Coddens <bart.coddens@gmail.com>
# Copyright 2016 Nexenta Systems, Inc.
# Copyright 2016 Joyent, Inc.
+ # Copyright 2016 RackTop Systems.
#
#
# This script takes a file list and a workspace and builds a set of html files
# suitable for doing a code review of source changes via a web page.
*** 2360,2370 ****
--- 2361,2373 ----
if [[ "$codemgr_ws" == ".git" ]]; then
codemgr_ws="${PWD}/${codemgr_ws}"
fi
+ if [[ "$codemgr_ws" = *"/.git" ]]; then
codemgr_ws=$(dirname $codemgr_ws) # Lose the '/.git'
+ fi
CWS="$codemgr_ws"
elif [[ $SCM_MODE == "subversion" ]]; then
#
# Subversion priorities:
# 1. CODEMGR_WS from environment