def execGit()

in GuestivusLib/GuestivusLib.py [0:0]


    def execGit(self, args):
        self.error = ""
        if (self.localRoot != ""):
            # Local path ok
            if not isinstance(args, list): # Check if args is list or single
                args = [args]

            return(subprocess.run(["git"] + args, cwd=self.localRoot, shell=True, text=True, capture_output=True))
        else:
            self.error = errors.localPathNotSet
            return(None)