Skip to content

Commit

Permalink
small bugfix in file contributions plugin regarding current project p…
Browse files Browse the repository at this point in the history
…ath and .git dir protontypes#164; added missing dep to setup file
  • Loading branch information
kikass13 committed Oct 24, 2020
1 parent e4366bf commit 9745229
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -118,10 +118,11 @@ def execGit(self):
### get toplevel git dir path
### git rev-parse --git-dir
### --show-toplevel gives path without .git
self.log("Finding .git of '%s' ..." % self.directory)
cmds = [
"git",
"-C %s" % self.directory, ## run command as if in -C dir
"rev-parse --git-dir", ### get .git dir of toplevel repo
"rev-parse --absolute-git-dir", ### get .git dir of toplevel repo
]
cmd = " ".join(cmds)
ps = subprocess.Popen(
Expand All @@ -133,7 +134,9 @@ def execGit(self):
projectPath = stdout.decode("utf-8").strip()
if not projectPath:
raise Exception("This is not a git repository!")
self.log("Found: '%s'" % projectPath)
### get project information
self.log("Finding project url ...")
project = None
cmds = [
"git",
Expand All @@ -152,7 +155,9 @@ def execGit(self):
project = stdout.decode("utf-8")
if not project:
raise Exception("This is not a git repository!")
self.log("Found: '%s'" % project)
### create ls command to get all files
self.log("Searching contributors ...")
fileFilterStr = " ".join(
[
"--exclude '%s'" % contributionTarget.target
Expand Down
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
"prompt_toolkit",
"qrcode",
"wheel",
"pluginlib"
],
packages=[
"libreselery",
Expand Down

0 comments on commit 9745229

Please sign in to comment.