Skip to content

Commit aafd8f3

Browse files
committed
Execute from CMSSW_BASE to make sure we always know where we are and have the repository handy.
1 parent 67c74a1 commit aafd8f3

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

git-cms-cvs-history

+3-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
from commands import getstatusoutput
33
from optparse import OptionParser
44
from sys import exit
5-
from os import environ
5+
from os import environ, chdir
66
from os.path import exists, join
77
import re
88

@@ -58,6 +58,8 @@ if __name__ == "__main__":
5858
if not cmssw_base:
5959
die("Please setup your CMSSW area")
6060

61+
chdir(join(cmssw_base, "src"))
62+
6163
err, output = getstatusoutput(format("cd $CMSSW_BASE/src ; git init"))
6264
if err:
6365
die("Error while setting up git repository")

0 commit comments

Comments
 (0)