Giter Site home page Giter Site logo

grunt-push-svn's People

Contributors

ddliu avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

grunt-push-svn's Issues

Pushing only works first time round

I have a fairly simple setup with grunt-push-svn. I'm finding that if I run it once, everything works as it should but running it again returns an error like below:

Warning: There is already a repo in folder "./build" with url *** Use --force to continue.

Below is my grunt config:

module.exports = {
  options: {
    remove: false,
    username: '***'
    password: '***'
  },
  main: {
    src: 'dist/example/',
    dest: '***/example/',
    tmp: './build'
  }
};

Am I missing something or is this a bug?

i can not use this plugin????

i saw the example,but it always tell me "{ [Error: spawn ENOENT] code: 'ENOENT', errno: 'ENOENT', syscall: 'spawn' }"

my config is:
push_svn:{
options:{
remove:false,
message:"<%=pkg.version%>version uglify"
},
min:{
src:"D:/workspace/webapp_o2o_v1",
dest:"https://tc-svn.tencent.com/paipai/paipai_qgo_rep/qgo_proj/trunk/itg/weigou_domestic/v1.0/webapp_o2o_v1/WebRoot/assets/min/",
tmp:"./tmp"
},
build:{
src:"D:/workspace/webapp_o2o_v1/WebRoot/assets/build",
dest:"https://tc-svn.tencent.com/paipai/paipai_qgo_rep/qgo_proj/trunk/itg/weigou_domestic/v1.0/webapp_o2o_v1/WebRoot/assets/build"

        }
    }

and i debug the code, find that when excute the "svn.getFile", it throw wrong.....

please tell me how i could write it??? thanks

Error: ENOENT, no such file or directory ''

I'm getting the following error when I try to run push_svn. It gets as far as checking out the repository to the .tmp folder but gives the following error when it goes to "push to temp path". It's strange since I'm using it on a different project and there are no issues.

Push to tmp path...

P:\Projects\Secret Location\Samsung\samsung-note\node_modules\grunt-google-cdn\node_modules\bower\node_modules\tmp\lib\tmp.js:261
  throw err;
        ^
Error: ENOENT, no such file or directory ''
    at Object.fs.readdirSync (fs.js:654:18)
    at Object.recurse (P:\Projects\Secret Location\Samsung\samsung-note\node_modules\grunt\lib\grunt\file.js:204:6)
    at P:\Projects\Secret Location\Samsung\samsung-note\node_modules\grunt-push-svn\tasks\push_svn.js:172:20
    at P:\Projects\Secret Location\Samsung\samsung-note\node_modules\grunt-push-svn\node_modules\async\lib\async.js:548:21
    at P:\Projects\Secret Location\Samsung\samsung-note\node_modules\grunt-push-svn\node_modules\async\lib\async.js:224:13
    at iterate (P:\Projects\Secret Location\Samsung\samsung-note\node_modules\grunt-push-svn\node_modules\async\lib\async.js:131:13)
    at P:\Projects\Secret Location\Samsung\samsung-note\node_modules\grunt-push-svn\node_modules\async\lib\async.js:142:25
    at P:\Projects\Secret Location\Samsung\samsung-note\node_modules\grunt-push-svn\node_modules\async\lib\async.js:226:17
    at P:\Projects\Secret Location\Samsung\samsung-note\node_modules\grunt-push-svn\node_modules\async\lib\async.js:553:34
    at ChildProcess.<anonymous> (P:\Projects\Secret Location\Samsung\samsung-note\node_modules\grunt-push-svn\node_modules\svn-spawn\node_modules\easy
-spawn\index.js:85:29)

My grunt task config is as follows (I've omitted the server name):

        push_svn: {
            options: {
                remove: false,
                pushIgnore: [],
                removeIgnore: [],
                message: 'BUILD'
            },
            main: {
               src: '<%= dist %>',
               dest: 'svn://SERVERNAMEOMITTED',
               tmp: '.tmp'
            },
        }

My dist folder definitely has files in it.

run the test case fails

Running "jshint:all" (jshint) task

2 files lint free.

Running "clean:tests" (clean) task

Running "shell:initRepo" (shell) task

Running "push_svn:main1" (push_svn) task

push_svn task: test/src/main --> tmp/build/a --> file:///tmp/grunt-push-svn-test

Prepare tmp path...
Prepare tmp svn working copy [tmp/build/a]: [file:///tmp/grunt-push-svn-test]..

Warning: spawn ENOENT Use --force to continue.

Aborted due to warnings.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.