Skip to content

Commit

Permalink
EOD
Browse files Browse the repository at this point in the history
  • Loading branch information
ArneBachmann committed Dec 22, 2017
1 parent 8a00812 commit 1450881
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Subversion Offline Solution (SOS 1.0.6) #
# Subversion Offline Solution (SOS 1.0.7) #

[![Travis badge](https://travis-ci.org/ArneBachmann/sos.svg?branch=master)](https://travis-ci.org/ArneBachmann/sos)
[![Build status](https://ci.appveyor.com/api/projects/status/fe915rtx02buqe4r?svg=true)](https://ci.appveyor.com/project/ArneBachmann/sos)
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import os, shutil, subprocess, sys, time, unittest
from setuptools import setup, find_packages

RELEASE = "1.0.6"
RELEASE = "1.0.7"

readmeFile = os.path.join(os.path.dirname(os.path.abspath(__file__)), 'README.md')
if 'build' in sys.argv:
Expand Down
2 changes: 1 addition & 1 deletion sos/sos.coco
Original file line number Diff line number Diff line change
Expand Up @@ -689,7 +689,7 @@ def add(relPath:str, pattern:str, options:str[] = []) -> None:
m.loadBranches()
if not m.track and not m.picky: Exit("Repository is in simple mode. Use 'offline --track' or 'offline --picky' instead")
if pattern in m.branches[m.branch].tracked: Exit("Pattern '%s' already tracked" % pattern)
if not force and not os.path.exists(os.path.basename(relPath.replace(SLASH, os.sep))): Exit("The pattern folder doesn't exist. Use --force to add it anyway")
if not force and not os.path.exists(relPath.replace(SLASH, os.sep)): Exit("The pattern folder doesn't exist. Use --force to add it anyway")
if not force and len(fnmatch.filter(os.listdir(os.path.abspath(relPath.replace(SLASH, os.sep))), os.path.basename(pattern.replace(SLASH, os.sep)))) == 0: # doesn't match any current file
Exit("Pattern doesn't match any file in specified folder. Use --force to add it anyway")
m.branches[m.branch].tracked.append(pattern) # TODO set inSync flag to False? same for rm
Expand Down

0 comments on commit 1450881

Please sign in to comment.