Commit a9fa11f
git-gui: set GIT_DIR and GIT_WORK_TREE after setup
Rather than juggling with the env var GIT_DIR around the invocation of
gitk, set it and GIT_WORK_TREE after finishing setup, ensuring that any
external tool works with the setup we're running with.
This also allows us to remove a couple of conditionals when running gitk
or git gui in a submodule, as we know that the variables are present and
have to be unset and reset before and after the invocation.
Signed-off-by: Giuseppe Bilotta <[email protected]>
Signed-off-by: Shawn O. Pearce <[email protected]>1 parent 3748b03 commit a9fa11f
1 file changed
+20
-23
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1171 | 1171 | | |
1172 | 1172 | | |
1173 | 1173 | | |
| 1174 | + | |
| 1175 | + | |
| 1176 | + | |
1174 | 1177 | | |
1175 | 1178 | | |
1176 | 1179 | | |
| |||
1979 | 1982 | | |
1980 | 1983 | | |
1981 | 1984 | | |
1982 | | - | |
| 1985 | + | |
1983 | 1986 | | |
1984 | 1987 | | |
1985 | 1988 | | |
| |||
1991 | 1994 | | |
1992 | 1995 | | |
1993 | 1996 | | |
1994 | | - | |
1995 | | - | |
1996 | | - | |
1997 | | - | |
1998 | | - | |
1999 | | - | |
2000 | 1997 | | |
2001 | 1998 | | |
2002 | 1999 | | |
2003 | 2000 | | |
2004 | 2001 | | |
2005 | 2002 | | |
2006 | | - | |
2007 | 2003 | | |
2008 | 2004 | | |
2009 | 2005 | | |
| |||
2024 | 2020 | | |
2025 | 2021 | | |
2026 | 2022 | | |
2027 | | - | |
2028 | | - | |
2029 | | - | |
| 2023 | + | |
| 2024 | + | |
| 2025 | + | |
| 2026 | + | |
| 2027 | + | |
| 2028 | + | |
| 2029 | + | |
2030 | 2030 | | |
2031 | 2031 | | |
2032 | 2032 | | |
2033 | | - | |
2034 | | - | |
2035 | | - | |
| 2033 | + | |
| 2034 | + | |
2036 | 2035 | | |
2037 | 2036 | | |
2038 | 2037 | | |
| |||
2053 | 2052 | | |
2054 | 2053 | | |
2055 | 2054 | | |
| 2055 | + | |
2056 | 2056 | | |
2057 | | - | |
2058 | | - | |
2059 | | - | |
2060 | | - | |
2061 | | - | |
2062 | | - | |
| 2057 | + | |
| 2058 | + | |
| 2059 | + | |
| 2060 | + | |
2063 | 2061 | | |
2064 | 2062 | | |
2065 | 2063 | | |
2066 | 2064 | | |
2067 | 2065 | | |
2068 | 2066 | | |
2069 | | - | |
2070 | | - | |
2071 | | - | |
| 2067 | + | |
| 2068 | + | |
2072 | 2069 | | |
2073 | 2070 | | |
2074 | 2071 | | |
| |||
0 commit comments