]> git.donarmstrong.com Git - bin.git/blobdiff - stodo
fix a typo in stodo
[bin.git] / stodo
diff --git a/stodo b/stodo
index e987c3a13bf67d9a69acbbc2e18a446e4baf0e0e..25824636f5908c0a4232ec0d8fe64cef28b952a6 100755 (executable)
--- a/stodo
+++ b/stodo
@@ -54,6 +54,20 @@ Display this manual.
 
 =back
 
+=head1 ENVIRONMENTAL VARIABLES
+
+=over
+
+=item B<TODODB>
+
+Todo databse location, set by devtodo
+
+=item B<STODO_NO_COMMIT>
+
+If set, stodo assumes that there is no network, and doesn't commit
+
+=back
+
 =head1 EXAMPLES
 
  on save {
@@ -100,7 +114,7 @@ my $base_dir = dirname($tododb);
 my $tododb_name = basename($tododb);
 
 if (not -e "$base_dir/.svn") {
-     print "$base_dir/.svn doesns't exist, not commiting\n" unless $options{quiet};
+     print "$base_dir/.svn doesn't exist, not commiting\n" unless $options{quiet};
      exit 0;
 }
 
@@ -116,7 +130,10 @@ while (<$svn_entries_fh>) {
      $svn_host = $2;
      last;
 }
-
+if ($ENV{STODO_NO_COMMIT}) {
+     print "Exiting because of STODO_NO_COMMIT env variable\n" unless $options{quiet};
+     exit 0;
+}
 if (not defined $svn_host and $url_type ne 'file') {
      die "Was unable to find which host the svn repository is located on";
 }