Skip to content

Commit 1c555b3

Browse files
committed
🚒 Fixes issue when adding remote upon git-repo create
instead of adding as remote the project under the current user's namespace, we now adds it to the specified namespace, whichever this is. fixes #101 Signed-off-by: Guyzmo <[email protected]>
1 parent 18605b4 commit 1c555b3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

git_repo/services/ext/github.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ def create(self, user, repo, add=False):
5151
else: # pragma: no cover
5252
raise ResourceError("Unhandled error.") from err
5353
if add:
54-
self.add(user=self.username, repo=repo, tracking=self.name)
54+
self.add(user=user, repo=repo, tracking=self.name)
5555

5656
def fork(self, user, repo):
5757
try:

0 commit comments

Comments
 (0)