mirror of
https://github.com/aljazceru/gitpear.git
synced 2025-12-17 22:24:22 +01:00
git push upon share; helper for git child process
Signed-off-by: dzdidi <deniszalessky@gmail.com>
This commit is contained in:
@@ -44,8 +44,8 @@ program
|
||||
|
||||
if (options.share) {
|
||||
home.shareAppFolder(name)
|
||||
await git.push()
|
||||
console.log(`Shared "${name}" project`)
|
||||
// push?
|
||||
}
|
||||
})
|
||||
|
||||
@@ -57,6 +57,7 @@ program
|
||||
const name = path.resolve(p).split(path.sep).pop()
|
||||
if ((home.isInitialized(name))) {
|
||||
home.shareAppFolder(name)
|
||||
await git.push()
|
||||
console.log(`Shared "${name}" project`)
|
||||
return
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user