Skip to content

Commit c28fd8f

Browse files
committed
Merge pull request #19 from neel1996/general-fetch-patch
1 parent b3cbedf commit c28fd8f

File tree

4 files changed

+4
-6
lines changed

4 files changed

+4
-6
lines changed

git/gitFetchPullApi.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ const getRemoteName = async (repoId, remoteUrl) => {
3232
});
3333
};
3434

35-
const gitFetchApi = async (repoId, remoteUrl, remoteBranch) => {
35+
const gitFetchApi = async (repoId, remoteUrl = "", remoteBranch = "") => {
3636
const remoteName = await getRemoteName(repoId, remoteUrl);
3737
console.log("Selected remote name : ", remoteName);
3838

git/gitRepoStatus.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
const { exec } = require("child_process");
2-
32
const fs = require("fs");
4-
53
const util = require("util");
64
const execPromised = util.promisify(exec);
75

global/globalFunctionStore.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -232,8 +232,8 @@ module.exports.gitRemoveAllStagedItems = gitRemoveAllStagedItems = async (
232232

233233
module.exports.gitFetchFromRemote = gitFetchFromRemote = async (
234234
repoId,
235-
remoteUrl,
236-
remoteBranch
235+
remoteUrl = "",
236+
remoteBranch = ""
237237
) => {
238238
return await gitFetchApi(repoId, remoteUrl, remoteBranch);
239239
};

global/gqlGlobalAPISchema.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ const globalAPISchema = new buildSchema(
104104
removeStagedItem(repoId: String!, item: String!): String!
105105
removeAllStagedItem(repoId: String!): String!
106106
addBranch(repoId: String!, branchName: String!): String!
107-
fetchFromRemote(repoId: String!, remoteUrl: String!, remoteBranch: String!): gitFetchStatus!
107+
fetchFromRemote(repoId: String!, remoteUrl: String, remoteBranch: String): gitFetchStatus!
108108
pullFromRemote(repoId: String!, remoteUrl: String!, remoteBranch: String!): gitPullStatus!
109109
updateRepoDataFile(newDbFile: String!): String!
110110
deleteRepo(repoId: String!): deleteRepoStatus!

0 commit comments

Comments
 (0)