{"issue":{"pull_request":{"diff_url":null,"html_url":null,"patch_url":null},"state":"closed","user":{"avatar_url":"https://secure.gravatar.com/avatar/35fc31a729295c8ff069ceb51772e6d1?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"35fc31a729295c8ff069ceb51772e6d1","url":"https://api.github.com/users/beysl0r","login":"beysl0r","id":506590},"milestone":null,"assignee":null,"updated_at":"2011-11-11T12:45:47Z","labels":[],"comments":0,"closed_at":"2011-11-11T12:45:47Z","url":"https://api.github.com/repos/beysl0r/darep/issues/5","body":"wenn man add -r reponame . macht wird der Inhalt des aktuellen Ordners komplett gelöscht !! Auch das repository!\r\nist auch sehr gefährlich zum Test schreiben!\r\nDas Problem liegt wohl daran wenn man es mit einem '.' macht, weil wenn man pfade angibt scheint es keine Probleme zu gegen.\r\n\r\nbasil~/Dropbox/projects/eclipse-workspace/darep/dist$ ./data-repository add -r \"myrepos\" bblabla\r\ncreated new repository myrepos\r\nThe file/folder bblabla has been successfully added to the repository as data set named BBLABLA\r\n\r\nbasil~/Dropbox/projects/eclipse-workspace/darep/dist$ ./data-repository add -r \"myrepos\" .\r\njava.io.FileNotFoundException: /Users/basil/Dropbox/projects/eclipse-workspace/darep/dist/myrepos/metadata/.\r\n\tat java.io.FileOutputStream.open(Native Method)\r\n\tat java.io.FileOutputStream.<init>(FileOutputStream.java:194)\r\n\tat java.io.FileOutputStream.<init>(FileOutputStream.java:145)\r\n\tat darep.repos.Metadata.save(Unknown Source)\r\n\tat darep.repos.Metadata.saveInDir(Unknown Source)\r\n\tat darep.repos.Dataset.saveToRepository(Unknown Source)\r\n\tat darep.repos.Database.add(Unknown Source)\r\n\tat darep.repos.Repository.add(Unknown Source)\r\n\tat darep.DarepController.processCommand(Unknown Source)\r\n\tat darep.DarepController.main(Unknown Source)","html_url":"https://github.com/beysl0r/darep/issues/5","title":"dangerous bug: add -r repo . deletes the whole working directory !!","number":5,"id":2049632,"created_at":"2011-10-25T20:44:20Z"},"action":"closed"}